Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion extensions/commands/art/cmd_build_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,9 @@ def build_info_promote(conan_api: ConanAPI, parser, subparser, *args):
subparser.add_argument("build_number", help="BuildInfo number to promote.")
subparser.add_argument("source_repo", help="Artifactory repository to get artifacts from.")
subparser.add_argument("target_repo", help="Artifactory repository to promote artifacts to.")
subparser.add_argument("--no-fail-fast", help="Continue promotion even if some artifacts fail to be promoted. Default: false.",
action='store_true', default=False)


subparser.add_argument("--dependencies", help="Whether to copy the build's dependencies or not. Default: false.",
action='store_true', default=False)
Expand All @@ -538,7 +541,8 @@ def build_info_promote(conan_api: ConanAPI, parser, subparser, *args):
"copy": "true",
"dependencies": "true" if args.dependencies else "false",
"status": args.status,
"comment": args.comment
"comment": args.comment,
"failFast": "false" if args.no_fail_fast else "true"
}

request_url = f"{url}/api/build/promote/{args.build_name}/{args.build_number}"
Expand Down
Loading