如何正确设置 jenkins 以使持续集成 jenkins xcode freestyle 构建成功?

How to settings jenkins correctly to make continous integration jenkins xcode freestyle build success?

提问人:GuideMePlease 提问时间:11/15/2023 最后编辑:GuideMePlease 更新时间:11/20/2023 访问量:108

问:

我关注了这篇关于与 Jenkins、Xcode 的基本持续集成的文章,但未能在 jenkins build 上获得绿色

我尝试了所有文章步骤,但仍然无法让 jenkins 构建成功,总是失败。

我使用 Jenkins 2.426.1

我的方案是: jenkins test jenkins build

其他 xcodebuild 参数: test -scheme jenkins -sdk iphonesimulator -destination 'platform=iOS 模拟器,name=iPhone 14 Pro,OS=16.4'

测试报告 XMLs : “${WORKSPACE}/freestyle-jenkins/test-reports/*.xml”

失败消息是:

触摸 /Users/用户名/Library/Developer/Xcode/DerivedData/jenkins-bypqnpxdthiwpfdzvpooneqdtvcy/Build/Intermediates.noindex/ArchiveIntermediates/jenkins/InstallationBuildProductsLocation/Applications/jenkins.app(在项目“jenkins”的目标“jenkins”中) cd /用户/用户名/.jenkins/workspace/freestyle-jenkins /usr/bin/touch -c /Users/username/Library/Developer/Xcode/DerivedData/jenkins-bypqnpxdthiwpfdzvpooneqdtvcy/Build/Intermediates.noindex/ArchiveIntermediates/jenkins/InstallationBuildProductsLocation/Applications/jenkins.app

** 存档成功 **

--- xcodebuild: 警告:使用多个匹配目标中的第一个: { 平台:iOS 模拟器,id:EA8412BD-B353-4AF4-AA1B-97251151B525,操作系统:16.4,名称:iPhone 14 Pro } { 平台:iOS 模拟器,id:EA8412BD-B353-4AF4-AA1B-97251151B525,操作系统:16.4,名称:iPhone 14 Pro } 2023-11-07 11:55:53.356 xcodebuild[75683:5834271] 将错误结果包写入 /var/folders/wm/_w_xrj315rb1mx733kpfq27c0000gn/T/ResultBundle_2023-07-11_11-55-0053.xcresult 准备包 xcodebuild:错误:无法使用方案 jenkins 构建项目 jenkins:无法运行测试,因为无法读取测试计划“jenkins”。 生成步骤“Xcode”将生成标记为失败 记录测试结果 未找到测试报告文件。配置错误? 完成:失败

我尝试搜索为什么无法运行测试,因为无法读取测试计划“jenkins”,但在遵循其他文章步骤后,仍然失败。

请帮助我完成 jenkins freestyle 构建和测试成功

Xcode 持续集成 Jenkins-Pipeline Jenkins-plugins

评论


答: 暂无答案