From 9e680112e7a7c2b3b4737a3b347d358a87e21001 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 17 Sep 2019 11:15:21 -0700 Subject: [PATCH] Exclude GitBook synchronization commits from CI (#5929) --- .buildkite/pipeline-upload.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.buildkite/pipeline-upload.sh b/.buildkite/pipeline-upload.sh index d3b4ec8fb0..fe69c6c14b 100755 --- a/.buildkite/pipeline-upload.sh +++ b/.buildkite/pipeline-upload.sh @@ -15,12 +15,17 @@ if [[ -n $BUILDKITE_TAG ]]; then "https://github.com/solana-labs/solana/releases/$BUILDKITE_TAG" buildkite-agent pipeline upload ci/buildkite-release.yml else + if [[ $BUILDKITE_BRANCH =~ ^pull ]]; then + # Add helpful link back to the corresponding Github Pull Request + buildkite-agent annotate --style info --context pr-backlink \ + "Github Pull Request: https://github.com/solana-labs/solana/$BUILDKITE_BRANCH" + fi + + if [[ $BUILDKITE_MESSAGE =~ GitBook: ]]; then + buildkite-agent annotate --style info --context gitbook-ci-skip \ + "GitBook commit detected, CI skipped" + exit + fi + buildkite-agent pipeline upload ci/buildkite.yml fi - -if [[ $BUILDKITE_BRANCH =~ ^pull ]]; then - # Add helpful link back to the corresponding Github Pull Request - buildkite-agent annotate --style info --context pr-backlink \ - "Github Pull Request: https://github.com/solana-labs/solana/$BUILDKITE_BRANCH" -fi -