Skip to content

Instantly share code, notes, and snippets.

@toolmantim
Created November 5, 2018 05:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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
#!/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