buildkite / feedback

Got feedback? Please let us know!
https://buildkite.com
25 stars 24 forks source link

Block steps can be locked down #417

Closed raynix closed 6 years ago

raynix commented 6 years ago

image So I'd hope there's an option to make pack and deliver step locked down(greyed out) until deploy for QA is successful.

sj26 commented 6 years ago

We spoke about this over email! But here, for posterity, you can do this by splitting your pipeline into two pieces, and only uploading the second after it should be unblockable.

# .buildkite/pipeline.yml
steps:
- command: echo building a thing
- block: Test the thing?
- command: echo testing a thing
- wait
- command: buildkite-agent pipeline upload .buildkite/pipeline.deploy.yml
# .buildkite/pipeline.deploy.yml
steps:
- block: Deploy the thing?
- command: echo deploy the thing

The first one does a couple of steps and includes a block step, and only uploads the second pipeline at the very end, meaning the deploy button won't appear or be unblockable until you know that it's a deployable build.