无法将Jenkin生成的.iPA上传到TestFlight或HockeyApp

时间:2014-09-16 17:48:31

标签: jenkins-plugins

Jenkin-ers在那里!请帮帮我。

用例: 我现在正在练习配置Jenkins以从我的Personnel GIT仓库获取已提交的代码库,构建并生成.iPA,然后自动将此构建推送到TestFlight或HockeyApp。

工作原理: Jenkins现在将拉出GIT代码库,构建项目并生成.iPA和其他文件。

事情不起作用: 从所需位置获取.iPA可执行文件并推送到TestFlight / HockeyApp。以下是JENKINS的控制台日志:

Results at '/Users/shriharsha/.jenkins/jobs/GITTestFlight/workspace/build/Release-iphoneos/BarCodeScanner-Release-1.0.ipa' 
[Release-iphoneos] $ ditto -c -k --keepParent -rsrc /Users/shriharsha/.jenkins/jobs/GITTestFlight/workspace/build/Release-iphoneos/BarCodeScanner.app.dSYM BarCodeScanner-Release-1.0-dSYM.zip
Uploading to HockeyApp...
java.lang.ArrayIndexOutOfBoundsException: 0
    at hockeyapp.HockeyappRecorder.perform(HockeyappRecorder.java:321)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
    at hudson.model.Build$BuildExecution.post2(Build.java:183)
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
    at hudson.model.Run.execute(Run.java:1770)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:89)
    at hudson.model.Executor.run(Executor.java:240)
Build step 'Upload to HockeyApp' marked build as failure
Uploading to testflight
No file to upload was found with paths search criteria: '/Users/shriharsha/.jenkins/jobs/GITTestFlight/workspace/build/Release-iphoneos/BarCodeScanner-Release-1.0.ipa'
Build step 'Upload to Testflight' marked build as failure
Finished: FAILURE

请让我知道这里有什么问题,对我来说真的很奇怪。

1 个答案:

答案 0 :(得分:1)

查看code,我猜你的.ipa文件的路径不正确。请注意,这必须是相对于工作区的路径。