我正在使用hudson 2.2.0进行测试应用程序。在基本级别我想从我的cvs中查看。 为此,我创建了一个新工作并进行了配置。但在构建此工作时,它给了我错误。 以下是错误控制台:
Started by user anonymous
[formcsam] $ cvs -Q -z3 -d :pserver:username:password@host:/root co -P -d workspace -D "Friday, May 18, 2012 5:51:37 AM UTC" core/myapp
java.io.IOException: Cannot run program "cvs" (in directory "C:\Documents and Settings\sanjay\.hudson\jobs\formcsam"): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.<init>(Proc.java:192)
at hudson.Proc$LocalProc.<init>(Proc.java:164)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:639)
at hudson.Launcher$ProcStarter.start(Launcher.java:274)
at hudson.Launcher$ProcStarter.join(Launcher.java:281)
at hudson.scm.CVSSCM.run(CVSSCM.java:575)
at hudson.scm.CVSSCM.run(CVSSCM.java:585)
at hudson.scm.CVSSCM.checkout(CVSSCM.java:756)
at hudson.scm.CVSSCM.checkout(CVSSCM.java:319)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1479)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:507)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:424)
at hudson.model.Run.run(Run.java:1366)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 17 more
[DEBUG] Skipping watched dependency update for build: formcsam #1 due to result: FAILURE
Finished: FAILURE
然后我复制了相同的命令从命令提示符启动它。从命令提示符它工作正常。所以我没有得到哈德森在解雇相同命令时的问题。
请帮帮我。 提前谢谢。
答案 0 :(得分:1)
忘了在hudson的配置中添加cvs.exe。