From 9e2eb9e4f9c230a16c7592b7b94c0e9be30acb27 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 26 Jun 2019 14:36:55 -0700 Subject: [PATCH] Set CI_REPO_SLUG correctly for the solana-secondary pipeline --- ci/env.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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