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 ‘ 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 directory
	at java.lang.UNIXProcess.forkAndExec(Native Method)
	at java.lang.UNIXProcess.(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 directory
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
	at hudson.Proc$LocalProc.(Proc.java:249)
	at hudson.Proc$LocalProc.(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

相对路径:

Jenkins自动部署:错误代码{{1007}}_第1张图片

下面的位置pom.xml文件

Jenkins自动部署:错误代码{{1007}}_第2张图片


你可能感兴趣的:(Jenkins)