Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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