CruiseControl.Net + Ankh SVN - 找不到svn.exe

时间:2014-07-10 04:55:16

标签: svn continuous-integration cruisecontrol.net ankhsvn ccnet-config

我正在尝试使用Ankh SVN配置 CrusieControl.net ,crusine控件安装正常并且ccnet.config配置正确,但是当进程在后台启动时会触发以下错误:

System.IO.IOException: Unable to execute file 
[C:\Program Files (x86)\VisualSVN Server\bin\svn.exe].  
The file may not exist or may not be executable. 
(The system cannot find the file specified)

*以上路径是虚拟的,我无法在我的机器上安装ankh svn EXE, C:\Program Files (x86)\AnkhSVN 2

ccnet.config 文件如下:

<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
  <cb:define PublishDir="D:\ccnet\ccnet\publish"/>
  <project name="ccnet">
    <workingDirectory>D:\ccnet\ccnet\</workingDirectory>
    <artifactDirectory>D:\ccnet\ccnet\</artifactDirectory>
    <webURL>http://localhost:62584/</webURL>
    <triggers>
      <intervalTrigger name="continuous" seconds="10"
             buildCondition="IfModificationExists"/>
    </triggers>
    <sourcecontrol type="svn">
      <trunkUrl>http://server/svn/ccnet/</trunkUrl>
      <!--<autoGetSource>true</autoGetSource>-->
      <executable>C:\Program Files (x86)\VisualSVN Server\bin\svn.exe</executable>
      <username>abc</username>
      <password>xyz</password>
      <cleanCopy>true</cleanCopy>
    </sourcecontrol>
    <tasks>
      <msbuild>
        <executable>
          C:\WINDOWS\microsoft.net\Framework64\v4.0.30319\MSBuild.exe
        </executable>
        <projectFile>ccnet.sln</projectFile>
        <buildArgs>
          /noconsolelogger /p:Configuration=Release /v:diag
        </buildArgs>
        <logger>
          C:\Program Files (x86)\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MSBuild.dll
        </logger>
        <timeout>600</timeout>
      </msbuild>
    </tasks>
    <labeller type="assemblyVersionLabeller">
      <major>2</major>
      <minor>0</minor>
      <incrementOnFailure>false</incrementOnFailure>
    </labeller>
    <publishers>
      <statistics />
      <xmllogger />
    </publishers>
  </project>
</cruisecontrol>

我尝试<autoGetSource>true</autoGetSource>但是它试图在我的项目解决方案文件夹中找到EXE。

任何人都可以指导我查看ankh svn exe路径,该路径将放在 <executable>SVN PATH</executable>

1 个答案:

答案 0 :(得分:0)

我通过使用命令行工具安装 TortoiseSVN 来获得解决方案,并指定位于bin目录中的svn.exe。

所以我的最终源代码控制块如下:

<sourcecontrol type="svn">
      <trunkUrl>http://server/svn/ccnet/</trunkUrl>
      <executable>C:\Program Files\TortoiseSVN\bin\svn.exe</executable>
      <username>abc</username>
      <password>xyz</password>
      <cleanCopy>true</cleanCopy>
</sourcecontrol>