【问题标题】:CruiseControl.Net + Ankh SVN - svn.exe not foundCruiseControl.Net + Ankh SVN - 找不到 svn.exe
【发布时间】:2014-07-10 04:55:16
【问题描述】:

我正在尝试使用 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>

我尝试了&lt;autoGetSource&gt;true&lt;/autoGetSource&gt;,但它试图在我的项目解决方案文件夹中找到 EXE。

谁能指导我获取将放在&lt;executable&gt;SVN PATH&lt;/executable&gt;

中的ankh svn exe路径

【问题讨论】:

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


    【解决方案1】:

    我通过使用命令行工具安装 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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-08
      • 1970-01-01
      • 1970-01-01
      • 2014-06-21
      • 2012-10-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多