diff --git a/ci/env.sh b/ci/env.sh index 329089d883..34a48d63d4 100644 --- a/ci/env.sh +++ b/ci/env.sh @@ -33,9 +33,15 @@ if [[ -n $CI ]]; then export CI_PULL_REQUEST= fi export CI_OS_NAME=linux - export CI_REPO_SLUG=$BUILDKITE_ORGANIZATION_SLUG/$BUILDKITE_PIPELINE_SLUG + if [[ -n $BUILDKITE_TRIGGERED_FROM_BUILD_PIPELINE_SLUG ]]; then + # The solana-secondary pipeline should use the slug of the pipeline that + # triggered it + export CI_REPO_SLUG=$BUILDKITE_ORGANIZATION_SLUG/$BUILDKITE_TRIGGERED_FROM_BUILD_PIPELINE_SLUG + else + export CI_REPO_SLUG=$BUILDKITE_ORGANIZATION_SLUG/$BUILDKITE_PIPELINE_SLUG + fi # TRIGGERED_BUILDKITE_TAG is a workaround to propagate BUILDKITE_TAG into - # the solana-secondary builder + # the solana-secondary pipeline if [[ -n $TRIGGERED_BUILDKITE_TAG ]]; then export CI_TAG=$TRIGGERED_BUILDKITE_TAG else