Created
November 5, 2018 05:04
-
-
Save toolmantim/f229f17c84476c06da389a68e07fae9f to your computer and use it in GitHub Desktop.
An example of dynamically adding a trigger step during a running Buildkite build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
cat << YML | buildkite-agent pipeline upload | |
steps: | |
- trigger: "other-pipeline" | |
async: true | |
build: | |
message: "${BUILDKITE_MESSAGE}" | |
commit: "${BUILDKITE_COMMIT}" | |
branch: "${BUILDKITE_BRANCH}" | |
YML |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment