diff --git a/etc/evergreen_yml_components/variants/amazon/test_release.yml b/etc/evergreen_yml_components/variants/amazon/test_release.yml index 9bd52198d45..de75204153a 100644 --- a/etc/evergreen_yml_components/variants/amazon/test_release.yml +++ b/etc/evergreen_yml_components/variants/amazon/test_release.yml @@ -235,6 +235,9 @@ buildvariants: crypt_task_compile_flags: SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique" CCFLAGS="-fno-gnu-unique" test_flags: --excludeWithAnyTags=incompatible_with_amazon_linux,requires_ldap_pool,requires_v4_0,requires_external_data_source,requires_latch_analyzer has_packages: true + packager_script: packager_enterprise.py + packager_arch: x86_64 + packager_distro: amazon2023 multiversion_platform: amazon2023 multiversion_edition: enterprise multiversion_architecture: x86_64 diff --git a/evergreen/packager.py_run.sh b/evergreen/packager.py_run.sh index 4ed7c0b022d..f024abfa3b0 100644 --- a/evergreen/packager.py_run.sh +++ b/evergreen/packager.py_run.sh @@ -14,6 +14,11 @@ if [ "${has_packages}" != "true" ]; then # exit 1 fi +if [ -z ${packager_script+x} ]; then + echo "Error: packager run when packager_script is not set, please remove the package task from this variant (or variant task group) or set packager_script if this variant is intended to run the packager." + exit 1 +fi + cd buildscripts $python ${packager_script} --prefix $(pwd)/.. --distros ${packager_distro} --tarball $(pwd)/../mongodb-dist.tgz -s ${version} -m HEAD -a ${packager_arch} cd ..