简体   繁体   English

归档ipa文件jenkins失败

[英]failed archiving ipa files jenkins

I have a extrange problem, 我有一个大问题

when building the ios app with jenkins the ipa file is generated, and signed correctly but when I try to archive the ipa file it fails 使用jenkins构建ios应用时,会生成ipa文件并正确签名,但是当我尝试存档ipa文件时会失败

the jenkins log says 詹金斯日志说

Results at '/Users/Shared/Jenkins/Home/jobs/iosHelp/workspace/build/ipa/Verion.ipa' 
[Debug-iphoneos] $ ditto -c -k --keepParent -rsrc /Users/Shared/Jenkins/Home/jobs/iosHelp/workspace/build/Debug-iphoneos/FormSlider.app.dSYM /Users/Shared/Jenkins/Home/jobs/iosHelp/workspace/build/ipa/Verion-dSYM.zip
Archiving artifacts
ERROR: No artifacts found that match the file pattern "/Users/Shared/Jenkins/Home/jobs/iosHelp/workspace/build/ipa/Verion.ipa". Configuration error?
ERROR: ‘/Users/Shared/Jenkins/Home/jobs/iosHelp/workspace/build/ipa/Verion.ipa’ doesn’t match anything: ‘’ exists but not ‘/Users/Shared/Jenkins/Home/jobs/iosHelp/workspace/build/ipa/Verion.ipa’
Build step 'Archive the artifacts' changed build result to FAILURE
Finished: FAILURE

clearly it states that jenkins couldn't find the ipa but in the statement before shows that the ipa was generated also using the terminal to go to the build/ipa directory I cheked that the file currently exists and is generated, 显然,它指出jenkins找不到ipa,但是在之前的声明中显示ipa也是使用终端生成的,它也使用终端转到build / ipa目录,我感到该文件当前存在并已生成,

any help would be appreciated 任何帮助,将不胜感激

What do you use in your "Archive Artifacts" configuration? 在“归档工件”配置中使用什么? It should be relative to $workspace , so in your case just build/ipa/Verion.ipa . 它应该对于$workspace ,所以在您的情况下,只需build/ipa/Verion.ipa

Make sure there are no extra quotes either 确保也没有多余的引号

When you navigate to this job folder is there a file there? 当您导航到此作业文件夹时,那里是否有文件? If you are using Ant blob syntax try adding a "*" at the end in case the file extension you wrote in is incorrect or instead of "build/ipa/Verion.ipa" use "build/ipa/Verion*" to try and locate the file, as @Slav mentioned use a path relative to the $workspace 如果您使用的是Ant blob语法,请尝试在末尾添加“ *”,以防写入的文件扩展名不正确,或者使用“ build / ipa / Verion *”代替“ build / ipa / Verion.ipa”来尝试找到文件,就像@Slav提到的那样,使用相对于$ workspace的路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM