Advertisement
Guest User

Untitled

a guest
Jul 30th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. set -euo pipefail
  4.  
  5. # Demonstration of how to do environment variable substitution with
  6. # buildkite-agent 2.x (in 3.x env var support is built-in)
  7. #
  8. # To use, save this file as .buildkite/pipeline.bash, chmod +x, and
  9. # then set your first pipeline step to run this and pipe it into
  10. # pipeline upload:
  11. #
  12. # .buildkite/pipeline.sh | buildkite-agent pipeline upload
  13. #
  14.  
  15. cat << EOF
  16. steps:
  17. - trigger: "another-pipeline"
  18. build:
  19. message: "Deploying build $BUILDKITE_BUILD_NUMBER"
  20. commit: "$BUILDKITE_COMMIT"
  21. branch: "$BUILDKITE_BRANCH"
  22. env:
  23. SOME_ENV: "$SOME_ENV"
  24. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement