SERVER-108975: allow overriding custom build project id (#39811)

GitOrigin-RevId: 261b73a916f4aeabbb9663f452b81d7187366a9e
This commit is contained in:
Dylan Richardson 2025-08-07 20:35:10 -05:00 committed by MongoDB Bot
parent b9097506c3
commit a4a07ab522
3 changed files with 15 additions and 2 deletions

View File

@ -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}

View File

@ -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")

View File

@ -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")