diff --git a/.evergreen-nightly-driver.yml b/.evergreen-nightly-driver.yml index 2e832cc9f..ab9e5b0ea 100644 --- a/.evergreen-nightly-driver.yml +++ b/.evergreen-nightly-driver.yml @@ -1,6 +1,6 @@ # https://github.com/evergreen-ci/evergreen/blob/main/docs/Project-Configuration/Parameterized-Builds.md#project-config parameters: - - key: mongodb_version_override + - key: mongodb_driver_version_override value: nightly include: diff --git a/.evergreen.yml b/.evergreen.yml index eb9f47fa4..720d90dfc 100644 --- a/.evergreen.yml +++ b/.evergreen.yml @@ -78,7 +78,7 @@ functions: env: NODE_JS_VERSION: ${node_js_version} DISTRO_ID: ${distro_id} - MONOGDB_VERSION_OVERRIDE: ${mongodb_version_override} + MONOGDB_DRIVER_VERSION_OVERRIDE: ${mongodb_driver_version_override} script: | source .evergreen/install-node.sh source .evergreen/install-npm-deps.sh @@ -115,7 +115,7 @@ functions: env: NODE_JS_VERSION: ${node_js_version} DISTRO_ID: ${distro_id} - MONOGDB_VERSION_OVERRIDE: ${mongodb_version_override} + MONOGDB_DRIVER_VERSION_OVERRIDE: ${mongodb_driver_version_override} script: | source .evergreen/install-node.sh source .evergreen/install-npm-deps.sh diff --git a/.evergreen/evergreen.yml.in b/.evergreen/evergreen.yml.in index 951e95322..0012b0f8a 100644 --- a/.evergreen/evergreen.yml.in +++ b/.evergreen/evergreen.yml.in @@ -145,7 +145,7 @@ functions: env: NODE_JS_VERSION: ${node_js_version} DISTRO_ID: ${distro_id} - MONOGDB_VERSION_OVERRIDE: ${mongodb_version_override} + MONOGDB_DRIVER_VERSION_OVERRIDE: ${mongodb_driver_version_override} script: | source .evergreen/install-node.sh source .evergreen/install-npm-deps.sh @@ -182,7 +182,7 @@ functions: env: NODE_JS_VERSION: ${node_js_version} DISTRO_ID: ${distro_id} - MONOGDB_VERSION_OVERRIDE: ${mongodb_version_override} + MONOGDB_DRIVER_VERSION_OVERRIDE: ${mongodb_driver_version_override} script: | source .evergreen/install-node.sh source .evergreen/install-npm-deps.sh diff --git a/.evergreen/install-npm-deps.sh b/.evergreen/install-npm-deps.sh index e1d5d3683..88846145e 100644 --- a/.evergreen/install-npm-deps.sh +++ b/.evergreen/install-npm-deps.sh @@ -3,11 +3,11 @@ set -x npm ci --verbose -echo "MONOGDB_VERSION_OVERRIDE:$MONOGDB_VERSION_OVERRIDE" +echo "MONOGDB_DRIVER_VERSION_OVERRIDE:$MONOGDB_DRIVER_VERSION_OVERRIDE" -# if MONOGDB_VERSION_OVERRIDE is set, then we want to replace the package version -if [[ -n "$MONOGDB_VERSION_OVERRIDE" ]]; then - export REPLACE_PACKAGE="mongodb:$MONOGDB_VERSION_OVERRIDE" +# if MONOGDB_DRIVER_VERSION_OVERRIDE is set, then we want to replace the package version +if [[ -n "$MONOGDB_DRIVER_VERSION_OVERRIDE" ]]; then + export REPLACE_PACKAGE="mongodb:$MONOGDB_DRIVER_VERSION_OVERRIDE" npm run replace-package fi