summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Guo <robert.guo@mongodb.com>2021-10-28 11:47:58 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-28 12:11:36 +0000
commita8408f0d115740981f9ed9ec10ca20aa58776902 (patch)
tree5953e1775ded1c75615c6a248653dcb6062cd812
parentec34df2d3798743891c5e79b1f8a84fd03ab32e8 (diff)
downloadmongo-a8408f0d115740981f9ed9ec10ca20aa58776902.tar.gz
SERVER-59963 support patch build params for multiversion versions
-rw-r--r--etc/evergreen.yml6
-rw-r--r--evergreen/multiversion_setup.sh15
2 files changed, 19 insertions, 2 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index 77b904cc963..714ab786335 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -82,6 +82,12 @@ parameters:
- key: future_git_tag
description: "Future git tag to be added. If empty, we will use the most recent git tag instead."
+ - key: last_lts_evg_version_id
+ description: "The Evergreen Version ID of the last-lts MongoDB binaries. Only binaries from release variants are used"
+
+ - key: last_continuous_evg_version_id
+ description: "The Evergreen Version ID of the last-continuous MongoDB binaries. Only binaries from release variants are used"
+
## Some variables for convenience:
variables:
diff --git a/evergreen/multiversion_setup.sh b/evergreen/multiversion_setup.sh
index 64bd44a6aa7..6e337fcf385 100644
--- a/evergreen/multiversion_setup.sh
+++ b/evergreen/multiversion_setup.sh
@@ -64,6 +64,17 @@ if [ ! -z "${multiversion_architecture_44_or_later}" ]; then
architecture="${multiversion_architecture_44_or_later}"
fi
+last_lts_arg="--installLastLTS"
+last_continuous_arg="--installLastContinuous"
+
+if [[ -n "${last_lts_evg_version_id}" ]]; then
+ last_lts_arg="${last_lts_evg_version_id}"
+fi
+
+if [[ -n "${last_continuous_evg_version_id}" ]]; then
+ last_continuous_arg="${last_continuous_evg_version_id}"
+fi
+
$python buildscripts/resmoke.py setup-multiversion \
--installDir /data/install \
--linkDir /data/multiversion \
@@ -71,5 +82,5 @@ $python buildscripts/resmoke.py setup-multiversion \
--platform $platform \
--architecture $architecture \
--useLatest \
- --installLastLTS \
- --installLastContinuous 4.4
+ $last_lts_arg \
+ $last_continuous_arg 4.4