How to build only specific branches

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.

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

7 Likes

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