Issue:
I am currently running the XCode bot periodically at a specific time of the day. However I only want the bot to make a new build iff there are any new commits in the repo. Each day at that specific time, it should check if there are new commits. In case there have been new commits, then continue with the building process else abort it. Why to run a new build and increment by version number etc, if there have been no changes, right?
What I tried?
I went through the Continuous Integration with XCode 6 WWDC video. It mentions that we can either run the bot periodically or run it after each new commit. I sort of want to combine the two ways. Couldn't find anything on this.
Solution Possible?
I saw there are pre-integration scripts one can run. One way I was thinking was to have my logic of checking if there was a new commit or not in the pre-integration shell script. If there were none, then abort the XCode bot build. How can I abort the build from a script? If there is any other way you know, please do answer/comment.