# Building a branch that isn't the default one

**URL:** <https://discuss.circleci.com/t/building-a-branch-that-isnt-the-default-one/9536>\
**Category:** Build Environment\
**Tags:** github, ios\
**Created:** [January 12, 2017, 2:53pm UTC](https://discuss.circleci.com/t/building-a-branch-that-isnt-the-default-one/9536 "2017-01-12T14:53:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![neilsheppard](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/neilsheppard/32/15192_2.png) [@neilsheppard](https://discuss.circleci.com/u/neilsheppard)\
**Post date:** [January 12, 2017, 2:53pm UTC](https://discuss.circleci.com/t/building-a-branch-that-isnt-the-default-one/9536/1 "2017-01-12T14:53:27Z")

</div>

Hi there,

I’m currently trialling CircleCI for my organisation, and have tested a fresh iOS project and got it running, but now I’d like to test one of our current iOS projects. I’ve created a new branch and set up a circle.yml file and have the relevant fastlane files in place. I then add my project and it automatically tries to build against the develop branch.

I’d like to be able to only build this branch, and ignore all other branches while testing it, but it seems that I can’t select a branch anywhere for my build to default to.

Thanks,

Neil.

---

<div class="post-metadata">

**Author:** ![andrewm-bridgit](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@andrewm-bridgit](https://discuss.circleci.com/u/andrewm-bridgit)\
**Post date:** [January 17, 2017, 9:01pm UTC](https://discuss.circleci.com/t/building-a-branch-that-isnt-the-default-one/9536/2 "2017-01-17T21:01:58Z")

</div>

@neilsheppard - did you happen to get an answer or solution to this? I’m running into the same problem. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![FelicianoTech](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/felicianotech/32/21348_2.png) [@FelicianoTech](https://discuss.circleci.com/u/FelicianoTech)\
**Post date:** [January 19, 2017, 6:12pm UTC](https://discuss.circleci.com/t/building-a-branch-that-isnt-the-default-one/9536/3 "2017-01-19T18:12:42Z")

</div>

`circle.yml` and any branch whitelist or blacklist needs to be in every single branch. Even the branches you don’t plan on building in CircleCI. That’s how it will know not to build a branch.

If master is updated and the whitelist is present on that branch, CircleCI doesn’t know that you want to ignore it because it doesn’t go through every available branch.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:39am UTC](https://discuss.circleci.com/t/building-a-branch-that-isnt-the-default-one/9536/4 "2018-06-18T11:39:03Z")

</div>


