diff --git a/etc/evergreen_yml_components/tasks/compile_tasks.yml b/etc/evergreen_yml_components/tasks/compile_tasks.yml index 2e4ca683541..1d79a47bcec 100644 --- a/etc/evergreen_yml_components/tasks/compile_tasks.yml +++ b/etc/evergreen_yml_components/tasks/compile_tasks.yml @@ -875,6 +875,7 @@ tasks: binary: bash env: PROMOTE_TASK_ID: ${promote_task_id} + PROMOTE_PROJECT_IDENTIFIER: ${promote_custom_project_identifier} EVERGREEN_API_USER: ${evergreen_api_user} EVERGREEN_API_KEY: ${evergreen_api_key} args: @@ -888,6 +889,7 @@ tasks: binary: bash env: PROMOTE_TASK_ID: ${promote_archive_dist_test_task_id} + PROMOTE_PROJECT_IDENTIFIER: ${promote_custom_project_identifier} CDN_PATH: "server-custom-builds" EVERGREEN_API_USER: ${evergreen_api_user} EVERGREEN_API_KEY: ${evergreen_api_key} @@ -965,6 +967,7 @@ tasks: binary: bash env: PROMOTE_TASK_ID: ${promote_task_id} + PROMOTE_PROJECT_IDENTIFIER: ${promote_custom_project_identifier} CDN_PATH: "sys-perf-builds" EVERGREEN_API_USER: ${evergreen_api_user} EVERGREEN_API_KEY: ${evergreen_api_key} diff --git a/evergreen/get_custom_build_promotion_expansions.sh b/evergreen/get_custom_build_promotion_expansions.sh index 72bb0860f98..3c05f06ace8 100755 --- a/evergreen/get_custom_build_promotion_expansions.sh +++ b/evergreen/get_custom_build_promotion_expansions.sh @@ -20,7 +20,12 @@ else promote_extension="tgz" fi -promote_project_identifier=$(cat task_data.json | jq -r ".project_identifier") +if [ -z "$PROMOTE_PROJECT_IDENTIFIER" ]; then + promote_project_identifier=$(cat task_data.json | jq -r ".project_identifier") +else + promote_project_identifier=$PROMOTE_PROJECT_IDENTIFIER +fi + promote_version_id=$(cat task_data.json | jq -r ".version_id") promote_build_id=$(cat task_data.json | jq -r ".build_id") promote_build_variant=$(cat task_data.json | jq -r ".build_variant") diff --git a/evergreen/get_custom_build_promotion_expansions_debug.sh b/evergreen/get_custom_build_promotion_expansions_debug.sh index f28e1723144..33739e7a792 100755 --- a/evergreen/get_custom_build_promotion_expansions_debug.sh +++ b/evergreen/get_custom_build_promotion_expansions_debug.sh @@ -20,7 +20,12 @@ else promote_extension="tgz" fi -promote_project_identifier=$(cat debug_task_data.json | jq -r ".project_identifier") +if [ -z "$PROMOTE_PROJECT_IDENTIFIER" ]; then + promote_project_identifier=$(cat task_data.json | jq -r ".project_identifier") +else + promote_project_identifier=$PROMOTE_PROJECT_IDENTIFIER +fi + promote_version_id=$(cat debug_task_data.json | jq -r ".version_id") promote_build_id=$(cat debug_task_data.json | jq -r ".build_id") promote_build_variant=$(cat debug_task_data.json | jq -r ".build_variant")