Skip to content

buildkite-plugins/skip-build-for-commit-buildkite-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skip build for commits Build status

A Buildkite plugin that checks if a commit is already built across different branch and cancels a build if the commit is already built.

Example

Plugin to verify builds for current commit of a build and cancel the current build with annotation if the build is already found with same commit.

steps:
  - plugins:
      - skip-build-for-commit#v1.0.0:
          build_token_env: API_TOKEN_ENV_VAR_NAME

Configuration

Required

build_token_env (string)

Environment variable for Buildkite API token access to read & cancel builds. Choose only read_builds and write_builds as token scope.To avoid leaking your API token to Buildkite.com or anyone with access to build logs, you need to avoid including it in pipeline.yml. This means it needs to be set specifically with an environment variable in an Agent hook, or made available from a previous plugin defined on the same step.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages