Building only a single branch?

I have 1 app, … but it builds multiple branches, … how can i configure it only builds the single branch i want ?

1 Like

Hi @sofico_mobile,

You can do this by using the Trigger Map / Triggers - related docs: http://devcenter.bitrise.io/webhooks/trigger-map/

E.g. to only build the master branch and nothing else ( http://devcenter.bitrise.io/webhooks/trigger-map/#how-to-build-only-a-single-branch ):

trigger_map:
- push_branch: "master"
  workflow: primary

If you want to build the master branch and also build pull requests ( http://devcenter.bitrise.io/webhooks/trigger-map/#a-very-simple-two-workflow-cicd-setup ):

trigger_map:
- push_branch: "master"
  workflow: deploy
- pull_request_target_branch: "*"
  workflow: primary

If you have any questions, just let us know!

Happy Building! :slight_smile: