0

我想配置CrusieControl.net与安赫SVN,则crusine控制装置工作正常,的ccnet.config配置正确,但在过程开始背景它触发以下错误:CruiseControl.Net +安赫SVN - svn.exe没有找到

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) 

*以上路径是一个虚拟的,我不能让我的机器上安装的安赫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。

任何人都可以指导我将被放置在<executable>SVN PATH</executable>

回答

0

安赫SVN exe文件的路径我用命令行工具安装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>