summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/setup_multiversion
diff options
context:
space:
mode:
authorMikhail Shchatko <mikhail.shchatko@mongodb.com>2021-05-14 15:09:52 +0300
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-14 14:14:25 +0000
commit7462cb443b3ef72b41ad6ca4defe0b45bc18495a (patch)
tree0a9144695f6df99103989b7122d046d3be5a0dd2 /buildscripts/resmokelib/setup_multiversion
parentcf277bd5000a5dc798e633173532932fe6501851 (diff)
downloadmongo-7462cb443b3ef72b41ad6ca4defe0b45bc18495a.tar.gz
SERVER-56948 Check that evergreen version has buildvariants map
Diffstat (limited to 'buildscripts/resmokelib/setup_multiversion')
-rw-r--r--buildscripts/resmokelib/setup_multiversion/setup_multiversion.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/buildscripts/resmokelib/setup_multiversion/setup_multiversion.py b/buildscripts/resmokelib/setup_multiversion/setup_multiversion.py
index bd9d8307b71..94d84656dfb 100644
--- a/buildscripts/resmokelib/setup_multiversion/setup_multiversion.py
+++ b/buildscripts/resmokelib/setup_multiversion/setup_multiversion.py
@@ -145,14 +145,15 @@ class SetupMultiversion(Subcommand):
evg_versions = evergreen_conn.get_evergreen_versions(self.evg_api, evg_project)
for evg_version in evg_versions:
- if buildvariant_name not in evg_version.build_variants_map:
- buildvariant_name = self.fallback_to_generic_buildvariant(major_minor_version)
-
- curr_urls = evergreen_conn.get_compile_artifact_urls(self.evg_api, evg_version,
- buildvariant_name)
- if "Binaries" in curr_urls:
- urls = curr_urls
- break
+ if hasattr(evg_version, "build_variants_map"):
+ if buildvariant_name not in evg_version.build_variants_map:
+ buildvariant_name = self.fallback_to_generic_buildvariant(major_minor_version)
+
+ curr_urls = evergreen_conn.get_compile_artifact_urls(self.evg_api, evg_version,
+ buildvariant_name)
+ if "Binaries" in curr_urls:
+ urls = curr_urls
+ break
return urls