Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -euo pipefail
- # Demonstration of how to do environment variable substitution with
- # buildkite-agent 2.x (in 3.x env var support is built-in)
- #
- # To use, save this file as .buildkite/pipeline.bash, chmod +x, and
- # then set your first pipeline step to run this and pipe it into
- # pipeline upload:
- #
- # .buildkite/pipeline.sh | buildkite-agent pipeline upload
- #
- cat << EOF
- steps:
- - trigger: "another-pipeline"
- build:
- message: "Deploying build $BUILDKITE_BUILD_NUMBER"
- commit: "$BUILDKITE_COMMIT"
- branch: "$BUILDKITE_BRANCH"
- env:
- SOME_ENV: "$SOME_ENV"
- EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement