Skip to content

Enable strict checks on the presence of a commit in a branch

License

Notifications You must be signed in to change notification settings

buildkite-plugins/branch-commit-buildkite-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Branch Commit Buildkite Plugin

A Buildkite plugin to check that the build commit is on the set branch

Options

These are all the options available to configure this plugin's behaviour.

Required

mode (string)

This can be either warn or strict.

  • warn will output a warning that the current set BUILDKITE_BRANCH is not where the build commit is located but continue the build
  • strict will fail the build in the above scenario

Examples

In warn mode:

steps:
  - label: ":pipeline:"
    command: buildkite-agent pipeline upload
    plugins:
      - branch-commit:
          mode: "warn"

In strict mode:

steps:
  steps:
    - label: ":pipeline:"
      command: buildkite-agent pipeline upload
      plugins:
        - branch-commit:
            mode: "strict"

⚒ Developing

You can use the bk cli to run the pipeline locally:

bk local run

👩‍💻 Contributing

Your policy on how to contribute to the plugin!

📜 License

The package is available as open source under the terms of the MIT License.

About

Enable strict checks on the presence of a commit in a branch

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages