xcodecontinuous-integrationxcode-bots

How to set Xcode Bot to run "on commit" for all branches of remote repository?


When creating an Xcode Bot in Xcode 6, it is linked to the current active branch in Xcode source control. There seems to be no supported way to change branches after creating the bot.

Xcode Service: Select Git Branch

I have set my bot to run "on commit". I find when I commit to that branch the bot immediately integrates the project. But when I commit to a different branch, the bot takes no action.

Ideally I would like a single Xcode Bot to look at all branches of the remote repository. When there is a new commit to any branch the bot and its tests should be run.

I do not want to create a new bot for each branch. Is there a solution?

Bug Report:
rdar://20154198

Developer Forum:
https://devforums.apple.com/thread/263490


Solution

  • Apple response from the dev forum:

    This isn't something Xcode Server supports. You might be able to craft a pre-integration trigger to switch branches in the working copy and invoke seperate xcodebuild invocations, but the results reported in the UI will only be for the Xcode Server builds (the build that XCS runs after your trigger executes).

    https://devforums.apple.com/thread/263490

    rdar://20154198