Introduce normalized CI environment vars: ci/env.sh (#4571)

This commit is contained in:
Michael Vines
2019-06-06 12:20:47 -07:00
committed by GitHub
parent 44835a91db
commit 53275cc678
15 changed files with 92 additions and 46 deletions

View File

@ -30,8 +30,8 @@ set -o pipefail
export RUST_BACKTRACE=1
UPLOAD_METRICS=""
TARGET_BRANCH=$BUILDKITE_BRANCH
if [[ -z $BUILDKITE_BRANCH ]] || ./ci/is-pr.sh; then
TARGET_BRANCH=$CI_BRANCH
if [[ -z $CI_BRANCH ]] || [[ -n $CI_PULL_REQUEST ]]; then
TARGET_BRANCH=$EDGE_CHANNEL
else
UPLOAD_METRICS="upload"