summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/setup_multiversion
diff options
context:
space:
mode:
authorRobert Guo <robert.guo@mongodb.com>2021-09-07 19:52:07 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-09-07 20:16:10 +0000
commitabeb2110c1509ef4b2dd2badea502bc1e178a47f (patch)
tree7716cc53489db9ddbed40cbcb80fa31f9e8cb500 /buildscripts/resmokelib/setup_multiversion
parent9e6b4a60f966bcd9de32f6da913c7665a7cd7e6a (diff)
downloadmongo-abeb2110c1509ef4b2dd2badea502bc1e178a47f.tar.gz
SERVER-59454 add command line option to setup-multiversion to ignore push task
Diffstat (limited to 'buildscripts/resmokelib/setup_multiversion')
-rw-r--r--buildscripts/resmokelib/setup_multiversion/setup_multiversion.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/buildscripts/resmokelib/setup_multiversion/setup_multiversion.py b/buildscripts/resmokelib/setup_multiversion/setup_multiversion.py
index 48d9f8a5f6e..9efe04f693b 100644
--- a/buildscripts/resmokelib/setup_multiversion/setup_multiversion.py
+++ b/buildscripts/resmokelib/setup_multiversion/setup_multiversion.py
@@ -359,12 +359,12 @@ class SetupMultiversionPlugin(PluginInterface):
da=args.download_artifacts,
dv=args.download_python_venv)
- return SetupMultiversion(install_dir=args.install_dir, link_dir=args.link_dir,
- mv_platform=args.platform, edition=args.edition,
- architecture=args.architecture, use_latest=args.use_latest,
- versions=args.versions, download_options=download_options,
- evergreen_config=args.evergreen_config,
- github_oauth_token=args.github_oauth_token, debug=args.debug)
+ return SetupMultiversion(
+ install_dir=args.install_dir, link_dir=args.link_dir, mv_platform=args.platform,
+ edition=args.edition, architecture=args.architecture, use_latest=args.use_latest,
+ versions=args.versions, download_options=download_options,
+ evergreen_config=args.evergreen_config, github_oauth_token=args.github_oauth_token,
+ ignore_failed_push=(not args.require_push), debug=args.debug)
@classmethod
def _add_args_to_parser(cls, parser):
@@ -420,6 +420,9 @@ class SetupMultiversionPlugin(PluginInterface):
"https://developer.github.com/v3/#rate-limiting")
parser.add_argument("-d", "--debug", dest="debug", action="store_true", default=False,
help="Set DEBUG logging level.")
+ parser.add_argument(
+ "-rp", "--require-push", dest="require_push", action="store_true", default=False,
+ help="Require the push task to be successful for assets to be downloaded")
def add_subcommand(self, subparsers):
"""Create and add the parser for the subcommand."""