Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
parser.add_argument('trace_path', help='Path to the conan trace log file e.j: '
'/tmp/conan_trace.log')
parser.add_argument('--env', nargs=1, action=Extender, help='Capture env var as a build env var e.j: --env CONAN_HOME')
args = parser.parse_args()
if not os.path.exists(args.trace_path):
print("Error, conan trace log not found! '%s'" % args.trace_path)
exit(1)
print("asasd")
print(args.env)
exit(1)
manager = BuildInfoManager()
info = manager.build(args.trace_path, args.build_name, args.build_number, args.env)
manager.send(info, args.artifactory_url, args.repo_name, args.user, args.password)