mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
buildkite: don't run tests on deleted branches
Copybara updates a target branch before merging it to the master and then it deletes it. The problem is that it triggers buildkite twice on the same commit: on the master branch and on the target branch. PiperOrigin-RevId: 514573062
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
set -euo pipefail
|
||||
|
||||
# Check that the target branch exists.
|
||||
git fetch origin "${BUILDKITE_BRANCH}" || {
|
||||
echo "Branch ${BUILDKITE_BRANCH} no longer exists; it was probably deleted by the time we got to it." >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Download any build-specific configuration that has been uploaded.
|
||||
# This allows top-level steps to override all subsequent steps.
|
||||
buildkite-agent artifact download 'tools/bazeldefs/*' . || true
|
||||
|
||||
Reference in New Issue
Block a user