Skip to content

fast-af/bail-early-buildkite-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bail-early-buildkite-plugin

Immediately cancel a build when any of its job fails

Screenshot of bailed build

Usage

  1. Provide a Buildkite token with graphql and write_builds access via a BUILDKITE_TOKEN environment variable

  2. Add the plugin to your steps:

steps:
  - command: 'echo hi'
    plugins:
      - 'fast-af/bail-early#v1.2.0': ~

Any step using this plugin will cause the build to bail with an annotation linking to the failed job.

Configuration

If you need to limit when the plugin is enabled, you can use the if parameter. Its value is eval'd in a bash conditional (e.g. if [ <your value here> ]; then...)

steps:
  - command: 'echo hi'
    plugins:
      - 'fast-af/bail-early#v1.2.0':
        if: '"$SHOULD_BAIL_EARLY" = "true"'

About

A Buildkite plugin for immediately cancelling a build when any of its job fails

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Shell 100.0%