Use the right branch for fetching dependencies

pull/21833/head
Travis Ralston 2019-03-13 22:22:36 -06:00
parent bdc94f3847
commit cab5f7aba4
2 changed files with 3 additions and 3 deletions

View File

@ -37,6 +37,7 @@ steps:
plugins: plugins:
- docker#v3.0.1: - docker#v3.0.1:
image: "node:10" image: "node:10"
propagate-environment: true
- label: "🔧 Riot Tests" - label: "🔧 Riot Tests"
command: command:
@ -56,3 +57,4 @@ steps:
plugins: plugins:
- docker#v3.0.1: - docker#v3.0.1:
image: "node:10" image: "node:10"
propagate-environment: true

View File

@ -17,10 +17,8 @@ clone() {
fi fi
} }
# Try the PR author's branch in case it exists on the deps as well.
clone $TRAVIS_PULL_REQUEST_BRANCH
# Try the target branch of the push or PR. # Try the target branch of the push or PR.
clone $TRAVIS_BRANCH clone $BUILDKITE_BRANCH
# Try the current branch from Jenkins. # Try the current branch from Jenkins.
clone `"echo $GIT_BRANCH" | sed -e 's/^origin\///'` clone `"echo $GIT_BRANCH" | sed -e 's/^origin\///'`
# Use the default branch as the last resort. # Use the default branch as the last resort.