feedback icon indicating copy to clipboard operation
feedback copied to clipboard

How to skip a build step based on environment variable in Buldkite pipeline.yml file?

Open zhaoyi0113 opened this issue 4 years ago • 0 comments

I have a pipeline.yml for buildkite CI which is:

steps:
  - label: "Test"
    command: test.sh
    skip: "$BUILDKITE_BRANCH == 'mybranch'"

I want to skip the build step if the branch name is mybranch but this setting doesn't seem to work in buildkite. This step is still run. I wonder how I can use environment variable in skip condition. I know I can check the environment inside test.sh script but I don't really want to do that.

zhaoyi0113 avatar Oct 01 '19 00:10 zhaoyi0113