summaryrefslogtreecommitdiff
path: root/buildscripts/ciconfig/evergreen.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/ciconfig/evergreen.py')
-rw-r--r--buildscripts/ciconfig/evergreen.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/buildscripts/ciconfig/evergreen.py b/buildscripts/ciconfig/evergreen.py
index 4731525290d..08915bd1d01 100644
--- a/buildscripts/ciconfig/evergreen.py
+++ b/buildscripts/ciconfig/evergreen.py
@@ -13,6 +13,8 @@ import yaml
import buildscripts.util.runcommand as runcommand
+ENTERPRISE_MODULE_NAME = "enterprise"
+
def parse_evergreen_file(path, evergreen_binary="evergreen"):
"""Read an Evergreen file and return EvergreenProjectConfig instance."""
@@ -293,6 +295,10 @@ class Variant(object):
modules = self.raw.get("modules")
return modules if modules is not None else []
+ def is_enterprise_build(self) -> bool:
+ """Determine if this build variant include the enterprise module."""
+ return ENTERPRISE_MODULE_NAME in set(self.modules)
+
@property
def run_on(self):
"""Get build variant run_on parameter as a list of distro names."""