需求:其实需求也是蛮简单的需要告警信息更加及时可靠,之前的折中方案是,将console output log全部通过邮件推送到我个人邮箱,但是还是显得不及时,因为邮件浏览非常不及时,现在我们的交流工具主要是slack,故而集成到slack即好。 解决方案:借助requests auth获取jenkins console output log,借助slack web api推送到个人或者channel,借助jenkins插件Execute a set of scripts在job执行出错时候,预警。 看脚本:
添加execute a set of scripts并且勾选Execute script only if builds fails
8、同时存在xcode7和xcode8的时候有报错
报错为:
1
2
3
4
CoreSimulator is attempting to unload a stale CoreSimulatorService job. Detected Xcode.app relocation or CoreSimulatorService version change. Framework path (/
Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework) and version (303.8) does not match existing job path (/Applications
/Xcode7.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc) and version