Skip to content

Instantly share code, notes, and snippets.

@jayco
Last active November 5, 2019 08:15
Show Gist options
  • Save jayco/38839ce221bb0f3b93d7f7cf11e90544 to your computer and use it in GitHub Desktop.
Save jayco/38839ce221bb0f3b93d7f7cf11e90544 to your computer and use it in GitHub Desktop.
Repo hooks
steps:
- label: get meta data
env:
REPO_NAME: ""
commands:
- 'echo $$REPO_NAME'
# this will be in your hooks folder - .builkdite/hooks/pre-command
set -eu
echo '--- grabbing repo name from agent '
export REPO_NAME=$(buildkite-agent meta-data get REPO_NAME)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment