jenkins中执行windows命令总出错

喵霓 2021-07-28 10:24:23

Started by user 王欢
Running as SYSTEM
Building in workspace E:\test\Pro
Updating svn://XXXXXXX/DataCenter/test/Pro at revision '2021-07-28T10:12:27.967 +0800' --quiet
Using sole credentials wanghuan/****** (svn账号,第三个了) in realm ‘<svn://191.167.20.212:31090> 22287c95-939a-4443-8778-74328fb54414’
At revision 72047

No changes for svn://191.167.20.212:31090/RD/MiaobiAI.DataCenter/test/Pro since the previous build
[Pro] $ cmd /c call /tmp/jenkins2788359179758767349.bat
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.<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 "cmd" (in directory "E:\test\Pro"): error=2, No such file or directory
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
	at hudson.Proc$LocalProc.<init>(Proc.java:250)
	at hudson.Proc$LocalProc.<init>(Proc.java:219)
	at hudson.Launcher$LocalLauncher.launch(Launcher.java:937)
	at hudson.Launcher$ProcStarter.start(Launcher.java:455)
	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:109)
	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
	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:1853)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:427)
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE

求大神帮助,给解决下,我都研究了快两周了,无法解决

(原因:公司就一个服务器,我不感动啊)

...全文
1227 回复 打赏 收藏 举报
写回复
回复
切换为时间正序
请发表友善的回复…
发表回复
发帖
其他
加入

1.0w+

社区成员

Web 开发 其他
社区管理员
  • 其他
申请成为管理员
帖子事件
创建了帖子
2021-07-28 10:24
社区公告
暂无公告