Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

An example Buildkite webhook endpoint for retrying builds `n` number of times

License

Notifications You must be signed in to change notification settings

buildkite/build-retry-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buildkite Build Retry Webhook

An example Buildkite webhook endpoint for retrying builds n number of times if they have the retry_build meta-data build property present.

Usage

  1. Create an API Access token: In your Buildkite Personal Settings → API Access Tokens create a token with write_builds permission.

  2. Deploy it to Heroku
    Deploy

  3. Find the secret: In your new Heroku app go to Settings → Config Variables → Reveal Config Variables, and copy the WEBHOOK_TOKEN variable value.

  4. 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.

  5. Trigger a build via the API: Be sure to include "meta-data": {"retry_build": n} 🎉

License

See the LICENSE file for license rights and limitations (MIT).

About

An example Buildkite webhook endpoint for retrying builds `n` number of times

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages