Name: build-retry-webhook
Owner: Buildkite
Description: An example Buildkite webhook endpoint for retrying builds `n` number of times
Created: 2015-03-19 05:15:17.0
Updated: 2018-04-05 02:03:38.0
Pushed: 2018-04-05 02:03:36.0
Homepage: null
Size: 5
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
An example Buildkite webhook endpoint for retrying builds n
number of times if they have the retry_build
meta-data build property present.
Create an API Access token: In your Buildkite Personal Settings ? API Access Tokens create a token with write_builds
permission.
Find the secret: In your new Heroku app go to Settings ? Config Variables ? Reveal Config Variables, and copy the WEBHOOK_TOKEN
variable value.
Set up the webhook: In Buildkite go to Settings ? Notifications ? Webhooks and add a new webhook pointing to your new Heroku app, and using the token you copied from your Heroku app?s config.
Trigger a build via the API: Be sure to include "meta-data": {"retry_build": n}
:tada:
See the LICENSE file for license rights and limitations (MIT).