How to skip builds for a branch? Or how to programmatically skip builds?


#1

We have a branch where we’d like to skip Circle builds. It’s not per-commit, so the [skip ci] tag doesn’t help here. Any way to configure that?

Alternatively, is there any way to programmatically skip builds? We’re programmatically failing builds with something like this:

if [ "$CIRCLE_BRANCH" = "branch-to-skip-builds" ]; then exit 1; fi

But now we have a bunch of broken builds :slight_smile:


#2

Hi,

You can specify branches to ignore when building in circle.yml.


#3

Thank you!


#4