Add pre & post build actions to Bots in Xcode Server

Originator:michele.titolo
Number:rdar://14221477 Date Originated:
Status:Duplicate Resolved:
Product:OS X Server Product Version:2.256 (261.3)
Classification:Enhancement Reproducible:Always
 
Summary:

When creating a new Bot, I should be able to add pre/post build actions and run my own scripts. The kinds of scripts I'm talking about are loading CocoaPods (which changes the contents of a workspace, so as a pre-build action is fragile), generating test output in a machine-friendly format, and uploading the created .ipa to a distribution service like HockeyApp or TestFlight to name just a few. The current workflow my team uses to create apps relies heavily on Jenkins CI and we'd like to switch to Xcode Server in the future.

Steps to Reproduce:

Try to do something before/after a build without pre/post build actions set in the scheme. You can't.

Expected Results:

I should be able to add build steps to a Bot, and decide what order they occur in. I should not have to use schemes to achieve this.

Actual Results:

Scripts need to be added to pre/post build actions in the scheme.

Regression:

Notes:

Schemes are great, but they really aren't made for the kind of things that need to be done when running CI and CD (Continuous Deployment).

Comments

Marked as a dupe to rdar://14148656

By michele.titolo at June 26, 2013, 11:12 p.m. (reply...)

This would add alot of needed flexibility to the new CI. I don't expect OS X server to support arbitrary chat apps or issue trackers, but a simple post-build curl can achieve these things. It would also add the flexibility to do things like e.g. run UIAutomation tests, which aren't currently supported by OS X server.

It isn't that important to me that the Xcode and Scoreboard UI show information about these arbitrary actions -- mostly I just want to move away from Jenkins and not have to deal with things like SSHing into a mac from Jenkins master to run tests.

By feedback.tagher at June 25, 2013, 12:31 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!