buildkite/build-retry-webhook

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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} :tada:

License

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


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.