Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 316
mikemaccana Avatar asked May 09 '16 12:05

mikemaccana


People also ask

What is checkout in CircleCI?

Without the checkout step, CircleCI doesn't have your code. Without the code, it can't do anything that it's suppose to do. For example, CircleCI won't be able to run your tests, compile your code, or deploy your code.

What does CircleCI do?

CircleCI can be configured to run very complex pipelines efficiently with sophisticated caching, docker layer caching, and resource classes for running on faster machines. As a developer using CircleCI you can: SSH into any job to debug your build issues.

What file extension does the configuration file for CircleCI use?

CircleCI uses your config. yml file to run the pipeline. You can see the output in the CircleCI dashboard.


1 Answers

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

like image 92
Dave Schweisguth Avatar answered Sep 25 '22 03:09

Dave Schweisguth