A Buildkite plugin to check that the build commit is on the set branch
These are all the options available to configure this plugin's behaviour.
This can be either warn
or strict
.
warn
will output a warning that the current setBUILDKITE_BRANCH
is not where the build commit is located but continue the buildstrict
will fail the build in the above scenario
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"
You can use the bk cli to run the pipeline locally:
bk local run
Your policy on how to contribute to the plugin!
The package is available as open source under the terms of the MIT License.