diff --git a/.evergreen/atlas/setup-atlas-cluster.sh b/.evergreen/atlas/setup-atlas-cluster.sh index 3fd2fe2e..ba2570ff 100755 --- a/.evergreen/atlas/setup-atlas-cluster.sh +++ b/.evergreen/atlas/setup-atlas-cluster.sh @@ -25,6 +25,7 @@ DRIVERS_ATLAS_GROUP_ID DRIVERS_ATLAS_LAMBDA_USER DRIVERS_ATLAS_LAMBDA_PASSWORD LAMBDA_STACK_NAME +TASK_ID ) # Ensure that all variables required to run the test are set, otherwise throw diff --git a/.evergreen/atlas/setup-variables.sh b/.evergreen/atlas/setup-variables.sh index c4daeee7..2bb5ab22 100644 --- a/.evergreen/atlas/setup-variables.sh +++ b/.evergreen/atlas/setup-variables.sh @@ -9,6 +9,7 @@ set -o errexit # Exit the script with error if any of the commands fail # # FUNCTION_NAME: Uses the stack name plus the current commit sha to create a unique cluster and function. # ATLAS_BASE_URL: Where the Atlas API root resides. +# TASK_ID: The `task_id` evergreen expansion associated with the CI run. # The Atlas API version @@ -18,4 +19,4 @@ ATLAS_API_VERSION="v1.0" ATLAS_BASE_URL="https://cloud.mongodb.com/api/atlas/$ATLAS_API_VERSION" # Add git commit to name of function and cluster. -FUNCTION_NAME="${LAMBDA_STACK_NAME}-$(git rev-parse --short HEAD)" \ No newline at end of file +FUNCTION_NAME="${LAMBDA_STACK_NAME}-${TASK_ID}-$(git rev-parse --short HEAD)" \ No newline at end of file