envato / stop-the-line-buildkite-plugin

Stop Buildkite pipelines based on build meta-data values.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stop The Line Buildkite Plugin

tests MIT License

A Buildkite plugin that stops build if a metadata key has a certain value.

Example

steps:
  - label: ":octagonal_sign:"
    plugins:
      - envato/stop-the-line#v0.1.0:
          if:
            key: "no-more-work"
            value: "true"
          style: "pass"
steps:
  - label: ":octagonal_sign:"
    plugins:
      - envato/stop-the-line#v0.1.0:
          unless:
            key: "sky"
            value: "blue"
          style: "fail"

Development

To run the tests:

docker-compose run --rm tests

To run the Buildkite Plugin Linter:

docker-compose run --rm lint

About

Stop Buildkite pipelines based on build meta-data values.

License:MIT License


Languages

Language:Shell 100.0%