Skip to content

Commit

Permalink
ci/env.sh: Log CI_BASE_BRANCH (solana-labs#33744)
Browse files Browse the repository at this point in the history
When debugging CI failures it helps when I can see all the variables set
by `env.sh`.

Order environment variables in the output to match the order they are
set a bit better.

`CI_BASE_BRANCH` was not set at all for unknown environment.  Does not
matter much, but it seems consistent to include it in the list next to
all the other variables.
  • Loading branch information
ilya-bobyr authored Oct 18, 2023
1 parent 0b05e8d commit 9baa0b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ if [[ -n $CI ]]; then
else
export CI=
export CI_BRANCH=
export CI_BASE_BRANCH=
export CI_BUILD_ID=
export CI_COMMIT=
export CI_JOB_ID=
Expand All @@ -131,10 +132,12 @@ fi
cat <<EOF
CI=$CI
CI_BRANCH=$CI_BRANCH
CI_BASE_BRANCH=$CI_BASE_BRANCH
CI_BUILD_ID=$CI_BUILD_ID
CI_COMMIT=$CI_COMMIT
CI_JOB_ID=$CI_JOB_ID
CI_OS_NAME=$CI_OS_NAME
CI_PULL_REQUEST=$CI_PULL_REQUEST
CI_OS_NAME=$CI_OS_NAME
CI_REPO_SLUG=$CI_REPO_SLUG
CI_TAG=$CI_TAG
EOF

0 comments on commit 9baa0b1

Please sign in to comment.