cli icon indicating copy to clipboard operation
cli copied to clipboard

bk local run - support if conditions - currently ignoring them

Open drnic opened this issue 4 years ago • 3 comments

https://buildkite.com/docs/pipelines/conditionals

steps:
  - command: "echo --- All good. Nice one."
    label: ":git:"
    if: build.branch == 'master'
  - command: "echo --- ERROR this shouldn't run; exit 1"
    label: ":git:"
    if: build.branch != 'master'

When I run this pipeline.yml it runs both steps; but it should only run one or the other.

@keithpitt is this something that should work, or one of those "its annoying to implement everything in ruby + golang" (my words not yours) gaps ;)

drnic avatar Mar 12 '20 00:03 drnic