我有几个关于构建的项目和每个构建甚至这个以前构建的项目,突然在新的提交中我得到了这个 -init-调试ARGS:
BUILD FAILED
/jenkins/usr/share/tomcat7/.jenkins/jobs/Virtualization_UI/workspace/nbproject/build-impl.xml:764: Execute failed: java.io.IOException: Cannot run program "${platforms.JDK_1.6.home}/bin/java": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:494)
at java.lang.Runtime.exec(Runtime.java:612)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:811)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:476)
... 23 more
总时间:0秒 构建步骤'Invoke Ant'标记构建为失败 存档工件 完成:失败
我已经在netbeans
上重建了该项目,并且它在本地完美运行,我在netbeans
以及jenkins
之前使用的配置与以前相同,但它只是没有不要感谢
答案 0 :(得分:0)
新提交突然之间&#34;在build-impl.xml
中更改此内容:
${platforms.JDK_1.6.home}/bin/java
以上是一个未解决的变量。在没有看到你的其余代码/构建的情况下,我只能猜测:是否有人将硬编码路径更改为变量(${platforms.JDK_1.6.home}
)?调用构建时,您可能需要将该变量传递给ant
。
那,或者您的构建节点(Jenkins主或从)突然丢失了一个名为${platforms.JDK_1.6.home}
的现有环境变量