Skip to content

Commit

Permalink
Merge pull request #122553 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-23.1-122506

release-23.1: build: skip posting issue if branch no longer exists
  • Loading branch information
celiala committed Apr 18, 2024
2 parents 15dcd57 + 03fa9c3 commit 16f0488
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build/teamcity/cockroach/nightlies/stress_impl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ else
TAGS="bazel,gss,$TAGS"
fi

GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [ "$TC_BUILD_BRANCH" != "$GIT_BRANCH" ]; then
echo "Skipping test $TARGET, as the expected branch is $TC_BUILD_BRANCH, but actual branch is $GIT_BRANCH"
exit 0
else
echo "Confirmed that git branch is $GIT_BRANCH matches build branch $TC_BUILD_BRANCH"
fi

bazel build //pkg/cmd/bazci --config=ci
BAZEL_BIN=$(bazel info bazel-bin --config=ci)
ARTIFACTS_DIR=/artifacts
Expand Down

0 comments on commit 16f0488

Please sign in to comment.