How to build only specific branches

circle.yml

#1

We want to build only when pushes happen on a certain branch, not every branch.
How to set this up?

FYI we’re building our Android app (Gradle), pulling from github.


#2

I believe this code is what you are looking for :smile:

general:
  branches:
    only:
     - master # list of branches to build
     - /feature-.*/ # or regexes

Ref: https://circleci.com/docs/configuration#branches


#3

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.