How do I make CircleCI [1.0] ignore a particular branch?
Asked Answered
B

1

8

I have many development branches, but I want CircleCI to only care about master.

enter image description here

Is there something I can configure, either in Circle or circle.yml? Alas I can't find anything on the topic in Circle's docs.

Borgerhout answered 9/5, 2016 at 12:10 Comment(0)
P
14

Give CircleCI a list of branches that are the only ones it should auto-build by adding the following to circle.yml:

general:
  branches:
    only:
      - master

Alternatively, if you had a fixed list of branches that you didn't want to build, you could blacklist them with ignore:

general:
  branches:
    ignore:
      - before-rethinkdb
      - rethinkdb

Documentation is here: https://circleci.com/docs/configuration/#branches

Paraselene answered 9/5, 2016 at 12:31 Comment(2)
Same in case of CircleCI 2.0 ?Palp
I don't think so, but I'm not using it at the moment so I can't verify. Sounds like a new question.Paraselene

© 2022 - 2024 — McMap. All rights reserved.