Skip to content

Commit

Permalink
Don't rebuild/retest release tags (solana-labs#5385)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines authored Aug 1, 2019
1 parent 97c0573 commit 5212b27
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .buildkite/pipeline-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
set -e
cd "$(dirname "$0")"/..

buildkite-agent pipeline upload ci/buildkite.yml
if [[ -n $BUILDKITE_TAG ]]; then
buildkite-agent annotate --style info --context release-tag \
"https://github.com/solana-labs/solana/releases/$BUILDKITE_TAG"
buildkite-agent pipeline upload ci/buildkite-release.yml
else
buildkite-agent pipeline upload ci/buildkite.yml
fi

if [[ $BUILDKITE_BRANCH =~ ^pull ]]; then
# Add helpful link back to the corresponding Github Pull Request
Expand Down
15 changes: 15 additions & 0 deletions ci/buildkite-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Build steps that run on a release tag
#
# All the steps in `buildkite.yml` are skipped and we jump directly to the
# secondary build steps since it's assumed the commit that was tagged is known
# to be good so there's no need to rebuild and retest it.
steps:
- trigger: "solana-secondary"
branches: "!pull/*"
async: true
build:
message: "${BUILDKITE_MESSAGE}"
commit: "${BUILDKITE_COMMIT}"
branch: "${BUILDKITE_BRANCH}"
env:
TRIGGERED_BUILDKITE_TAG: "${BUILDKITE_TAG}"
3 changes: 3 additions & 0 deletions ci/buildkite-secondary.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#
# Build steps that run after the primary pipeline on pushes and tags.
# Pull requests to not run these steps.
steps:
- command: "sdk/docker-solana/build.sh"
timeout_in_minutes: 60
Expand Down
3 changes: 3 additions & 0 deletions ci/buildkite.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Build steps that run on pushes and pull requests.
#
# Release tags use buildkite-release.yml instead
steps:
- command: "ci/shellcheck.sh"
name: "shellcheck"
Expand Down

0 comments on commit 5212b27

Please sign in to comment.