Archive only when all tests passed with Xcode 5 Bots?
I just ran into this problem too. Here is the bot result plist location:
/Library/Server/Xcode/Data/BotRuns/Latest/output/xcodebuild_result.bundle/Info.plist
You will have to parse the info.plist file to make sure the TestsFailedCount is 0, but the following answer shows a way to parse the file using PlistBuddy and bash: Where do Xcode Bots put their results, so I can parse them?