Cruisecontrol(原始)无法运行程序“svn” (在目录中......)

发布于 2024-09-19 07:53:17 字数 1331 浏览 4 评论 0原文

我安装 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

装迷糊 2024-09-26 07:53:17

最有可能的是,您的 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.

梦巷 2024-09-26 07:53:17

您可以在 CruiseControl 的源代码控制块中设置 Subversion .exe 路径:

<sourcecontrol type="svn">
  <executable>C:\Program Files\svn\bin\svn.exe</executable>
etc...
</sourcecontrol>

You can set the Subversion .exe path in CruiseControl's sourcecontrol block:

<sourcecontrol type="svn">
  <executable>C:\Program Files\svn\bin\svn.exe</executable>
etc...
</sourcecontrol>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文