Cruisecontrol(原始)无法运行程序“svn” (在目录中......)
我安装 CruiseControl 2.8.3 ,svn, 并使用config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<cruisecontrol>
<project name="xxxx">
<property name="maven_home" value="F:/xxx/df/apache-maven-2.2.1"/>
<listeners>
<currentbuildstatuslistener file="logs/${project.name}/status.txt" />
</listeners>
<bootstrappers>
<svnbootstrapper localWorkingCopy="projects/${project.name}" />
</bootstrappers>
<modificationset quietperiod="30">
<svn localWorkingCopy="projects/${project.name}" />
</modificationset>
<schedule interval="60">
<maven2 mvnhome="${maven_home}" pomfile="projects/${project.name}/pom.xml"
goal="clean test" />
</schedule>
<log>
<merge dir="projects/${project.name}/target/surefire-reports" />
</log>
<publishers>
<onsuccess>
<artifactspublisher dest="artifacts/${project.name}"
file="projects/${project.name}/target/${project.name}.jar" />
</onsuccess>
</publishers>
</project>
</cruisecontrol>
当我在命令中运行cruisecontrol.bat时,一切正常。 但我运行 cc 作为 nt 服务给我错误:
Caused by: java.io.IOException: Cannot run program "svn" (in directory "projects/xxxx"): CreateProcess error=2, ?????????
I instal CruiseControl 2.8.3 ,svn,
and use config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<cruisecontrol>
<project name="xxxx">
<property name="maven_home" value="F:/xxx/df/apache-maven-2.2.1"/>
<listeners>
<currentbuildstatuslistener file="logs/${project.name}/status.txt" />
</listeners>
<bootstrappers>
<svnbootstrapper localWorkingCopy="projects/${project.name}" />
</bootstrappers>
<modificationset quietperiod="30">
<svn localWorkingCopy="projects/${project.name}" />
</modificationset>
<schedule interval="60">
<maven2 mvnhome="${maven_home}" pomfile="projects/${project.name}/pom.xml"
goal="clean test" />
</schedule>
<log>
<merge dir="projects/${project.name}/target/surefire-reports" />
</log>
<publishers>
<onsuccess>
<artifactspublisher dest="artifacts/${project.name}"
file="projects/${project.name}/target/${project.name}.jar" />
</onsuccess>
</publishers>
</project>
</cruisecontrol>
when i run cruisecontrol.bat in command everything go ok.
but i run cc as nt service give me error :
Caused by: java.io.IOException: Cannot run program "svn" (in directory "projects/xxxx"): CreateProcess error=2, ?????????
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最有可能的是,您的 SVN 位于某个目录中,该目录包含在您的 Windows 用户帐户的 PATH 环境变量中,但不包含在您运行 CC 服务的用户帐户的 PATH 中。尝试使用 SVN.EXE 的完整路径或将 SVN.EXE 位置添加到计算机范围的 PATH 中。
Most likely, your SVN is located in a directory,which is included in the PATH environment variable for your Windows user account, but is not included in the PATH for the user account you are running the CC service as. Try either using full path to SVN.EXE or adding the SVN.EXE location to the machine-wide PATH.
您可以在 CruiseControl 的源代码控制块中设置 Subversion .exe 路径:
You can set the Subversion .exe path in CruiseControl's sourcecontrol block: