Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save toolmantim/acaeb3efdd5860fec834995d34cd42ed to your computer and use it in GitHub Desktop.
Save toolmantim/acaeb3efdd5860fec834995d34cd42ed to your computer and use it in GitHub Desktop.
An example custom Buildkite Agent bootstrap wrapper that logs the output of all build jobs.
#!/bin/bash
set -euo pipefail
# A custom bootstrap wrapper that logs the output of all build jobs.
#
# To use this file, either set the env variable before starting the agent:
# BUILDKITE_BOOTSTRAP_SCRIPT_PATH=/path-to-this-file
#
# or the agent configuration key:
# bootstrap-script=/path-to-this-file
exec buildkite-agent bootstrap "$@" |& tee "xyz.log"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment