{"id":19458722,"url":"https://github.com/improbable-eng/metahook-buildkite-plugin","last_synced_at":"2025-04-25T06:30:34.061Z","repository":{"id":45432735,"uuid":"198711160","full_name":"improbable-eng/metahook-buildkite-plugin","owner":"improbable-eng","description":"Run commands as buildkite hooks on a per-step basis","archived":false,"fork":false,"pushed_at":"2022-09-28T00:31:47.000Z","size":28,"stargazers_count":23,"open_issues_count":3,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T17:22:57.409Z","etag":null,"topics":["buildkite-plugin","engineering-velocity"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/improbable-eng.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-24T21:19:25.000Z","updated_at":"2024-09-12T19:48:51.000Z","dependencies_parsed_at":"2023-01-18T18:17:35.859Z","dependency_job_id":null,"html_url":"https://github.com/improbable-eng/metahook-buildkite-plugin","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/improbable-eng%2Fmetahook-buildkite-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/improbable-eng%2Fmetahook-buildkite-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/improbable-eng%2Fmetahook-buildkite-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/improbable-eng%2Fmetahook-buildkite-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/improbable-eng","download_url":"https://codeload.github.com/improbable-eng/metahook-buildkite-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250766966,"owners_count":21483896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["buildkite-plugin","engineering-velocity"],"created_at":"2024-11-10T17:28:14.325Z","updated_at":"2025-04-25T06:30:33.727Z","avatar_url":"https://github.com/improbable-eng.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Metahook Buildkite Plugin\n\nA Buildkite plugin that allows running additional commands as buildkite hooks on a per-step basis.\n\n## Example\n\n```yaml\ncommon: \u0026common\n  plugins:\n  - improbable-eng/metahook:\n      post-checkout: scripts/setup.sh\n      pre-exit: |\n        scripts/cleanup.sh\n        echo \"Step finished!\"\n        scripts/notify.sh\n\nsteps:\n  - label: \"Build\"\n    command: \"scripts/build.sh\"\n    \u003c\u003c: *common\n\n  - label: \"Test\"\n    command: \"scripts/test.sh\"\n    \u003c\u003c: *common\n```\n\nMetahooks execute via a `bash` script, searching your `PATH` for `bash`.\n\nMetahooks execute in Bash Strict Mode.\n\nBash Strict Mode is provided by\n\n- `set -o errexit` - halt on error\n- `set -o nounset` - halt if variable is unset\n- `set -o pipefail` - halt if a command inside a pipe fails\n\nYou can override those choices by setting different values (e.g. `set +o nounset`) within your metahook.\n\n## Contributing\n\nSee [contributing](contributing.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimprobable-eng%2Fmetahook-buildkite-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimprobable-eng%2Fmetahook-buildkite-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimprobable-eng%2Fmetahook-buildkite-plugin/lists"}