本文主要是介绍Jenkins自动部署:错误代码{{1007}},希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
部署错误记录与分析:原因 pom文件指定不正确导致
Started by user LP协同办公
Building in workspace /root/.jenkins/workspace/uums
Checking out a fresh workspace because there's no workspace at /root/.jenkins/workspace/uums
Cleaning local Directory .
Checking out https://118.31.39.239/svn/agriuums/trunk at revision '2018-05-12T17:44:52.029 +0800' --quiet
Using sole credentials zhangzenghuan/****** in realm ‘<https://118.31.39.239:443> VisualSVN Server’
At revision 197[uums] $ mvn /root/.jenkins/workspace/agriuums-lp-auto/pom.xml
FATAL: command execution failed
java.io.IOException: error=2, No such file or directoryat java.lang.UNIXProcess.forkAndExec(Native Method)at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)at java.lang.ProcessImpl.start(ProcessImpl.java:134)at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
Caused: java.io.IOException: Cannot run program "mvn" (in directory "/root/.jenkins/workspace/uums"): error=2, No such file or directoryat java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)at hudson.Proc$LocalProc.<init>(Proc.java:249)at hudson.Proc$LocalProc.<init>(Proc.java:218)at hudson.Launcher$LocalLauncher.launch(Launcher.java:929)at hudson.Launcher$ProcStarter.start(Launcher.java:449)at hudson.Launcher$ProcStarter.join(Launcher.java:460)at hudson.tasks.Maven.perform(Maven.java:367)at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)at hudson.model.Build$BuildExecution.build(Build.java:206)at hudson.model.Build$BuildExecution.doRun(Build.java:163)at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)at hudson.model.Run.execute(Run.java:1794)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)at hudson.model.ResourceController.execute(ResourceController.java:97)at hudson.model.Executor.run(Executor.java:429)
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE
相对路径:
下面的位置pom.xml文件
这篇关于Jenkins自动部署:错误代码{{1007}}的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!