Error while uploading ipa to hockeyapp via jenkins

…衆ロ難τιáo~ 提交于 2020-01-06 04:51:13

问题


I am working with jenkins for auto deployment of iOS app via hockey app. I am successful in creating the .ipa file.

In the post-buid action at jenkin, I set up the API Token, App File and other setting. Please look into the attached image for more details. However in the console output, I am getting the below error:-

Console output :

18:36:11 ** EXPORT SUCCEEDED ** 18:36:11 18:36:11 Archiving dSYM 18:36:11 [Release-iphoneos] $ ditto -c -k --keepParent -rsrc /Users/Shared/Jenkins/Home/workspace/jenkinadhocIPA/build/Release-iphoneos/jenkinadhoc.xcarchive/dSYMs/jenkinadhoc.app.dSYM /Users/Shared/Jenkins/Home/workspace/jenkinadhocIPA/build/Release-iphoneos/artifact/2018.06.06-dSYM.zip 18:36:11 FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection 18:36:11 java.lang.NoClassDefFoundError: Could not initialize class hudson.util.ProcessTree$UnixReflection 18:36:11 at hudson.util.ProcessTree$UnixProcess.kill(ProcessTree.java:647) 18:36:11 at hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:668) 18:36:11 at hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:667) 18:36:11 at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:589) 18:36:11 at hudson.Launcher$LocalLauncher.kill(Launcher.java:949) 18:36:11 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510) 18:36:11 at hudson.model.Run.execute(Run.java:1724) 18:36:11 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 18:36:11 at hudson.model.ResourceController.execute(ResourceController.java:97) 18:36:11 at hudson.model.Executor.run(Executor.java:421) 18:36:11 Build step 'Upload to HockeyApp' marked build as failure 18:36:11 Finished: FAILURE

Java version in my system:-


回答1:


This is obviously a Java problem in the jenkins. You might have to check the JDK and jenkins setup that you are using.

You can reference the following.

Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection



来源:https://stackoverflow.com/questions/50721336/error-while-uploading-ipa-to-hockeyapp-via-jenkins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!