FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection java.lang.NoClassDefFoundError: Could not initialize class hudson.util.ProcessTree$UnixReflection at hudson.util.ProcessTree$UnixProcess.kill(ProcessTree.java:647) at hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:668) at hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:667) at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:589) at hudson.Launcher$LocalLauncher.kill(Launcher.java:949) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:502) at hudson.model.Run.execute(Run.java:1737) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:421)
詹金斯版 2.73.3 MacOSx
进行iOS构建并上传到hockeyapp。.ipa创建成功,似乎在hockeyapp上传后出现错误。我有一个可以正常工作并成功上传到hockeyapp的android项目。
更新Jenkins和插件后,今天开始获取此内容。以前在工作。
有任何想法吗?
运行Android版本时发生了变化(Jenkins版本2.86,由于其他原因,我刚刚从2.87降级或更新了一些类似的内容)
Build step 'Invoke Gradle script' changed build result to SUCCESS FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection java.lang.NoClassDefFoundError: Could not initialize class hudson.util.ProcessTree$UnixReflection at hudson.util.ProcessTree$UnixProcess.kill(ProcessTree.java:647) at hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:668) at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:589) at hudson.Launcher$LocalLauncher.kill(Launcher.java:949) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510) at hudson.model.Run.execute(Run.java:1724) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:421) Finished: FAILURE
首先成功,然后失败,嗯嗯
我记得最近我已经安装了Java 9进行实验,但是仍然在我的.zshrc中将java 8设置为usl / libexec / java_home,例如:
export JAVA_HOME=`/usr/libexec/java_home -v 1.8.0_152`
但这根本没有帮助,所以我向Java 9说了再见
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk
然后去管理詹金斯->配置系统->环境变量并添加
/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home
为JAVA_HOME
詹金斯重新启动后,我的构建像一个魅力一样运行