Xcode Service: Select Git Branch

前端 未结 4 1634
醉话见心
醉话见心 2021-02-14 13:59

I started to set up the new Xcode service in Mavericks. I created a new bot - but I wasn\'t asked for the branch it should build?

How can I select the branch for each bo

4条回答
  •  悲哀的现实
    2021-02-14 14:48

    Assuming you want to change it whenever you want and not recreate bots each time, you can use the script: (pre-trigger)

    cd "$XCS_SOURCE_DIR/"
    git checkout development
    

    Just change it to whatever branch you want and whatever repo you want. (you can look in the pre trigger logs to see if you mess up the change directory, ie if you misspel the repo name or whatever else. Good luck!

提交回复
热议问题