Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Select branch on Xcode 6 bot

In Xcode [Server] 5.x when creating a bot we were able to specify which branch to check out for the remote when building. How could you achieve the same results in Xcode 6? The options don't seem to be available within Xcode when creating the bot, or from the browser when viewing it on the web.

like image 964
NSTJ Avatar asked Sep 17 '14 02:09

NSTJ


2 Answers

After a some investigation it appears the only obvious way to select a different branch for a bot is to have that branch checked out at the time the bot is created. This can be done from within Xcode:

Source Control > [your project name] > Switch to Branch

After which you can create your bot which will check out this branch when integrating.

I really don't like this behaviour and have to assume there's a workaround for this

like image 65
NSTJ Avatar answered Sep 22 '22 04:09

NSTJ


In Xcode 7 you can now select the branch.

In Xcode 5 and 6 you can add the following to a "Before Integration" script.

git checkout NameOfYourBranch

like image 39
Onato Avatar answered Sep 26 '22 04:09

Onato