Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/improbable-eng/metahook-buildkite-plugin
Run commands as buildkite hooks on a per-step basis
https://github.com/improbable-eng/metahook-buildkite-plugin
buildkite-plugin engineering-velocity
Last synced: 2 months ago
JSON representation
Run commands as buildkite hooks on a per-step basis
- Host: GitHub
- URL: https://github.com/improbable-eng/metahook-buildkite-plugin
- Owner: improbable-eng
- License: mit
- Created: 2019-07-24T21:19:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-28T00:31:47.000Z (over 2 years ago)
- Last Synced: 2024-04-14T04:48:59.366Z (9 months ago)
- Topics: buildkite-plugin, engineering-velocity
- Language: Shell
- Homepage:
- Size: 27.3 KB
- Stars: 20
- Watchers: 3
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# Metahook Buildkite Plugin
A Buildkite plugin that allows running additional commands as buildkite hooks on a per-step basis.
## Example
```yaml
common: &common
plugins:
- improbable-eng/metahook:
post-checkout: scripts/setup.sh
pre-exit: |
scripts/cleanup.sh
echo "Step finished!"
scripts/notify.shsteps:
- label: "Build"
command: "scripts/build.sh"
<<: *common- label: "Test"
command: "scripts/test.sh"
<<: *common
```Metahooks execute via a `bash` script, searching your `PATH` for `bash`.
Metahooks execute in Bash Strict Mode.
Bash Strict Mode is provided by
- `set -o errexit` - halt on error
- `set -o nounset` - halt if variable is unset
- `set -o pipefail` - halt if a command inside a pipe failsYou can override those choices by setting different values (e.g. `set +o nounset`) within your metahook.
## Contributing
See [contributing](contributing.md)