在Windows Server 2003上运行CruiseControl.NET 1.4.4 SP1服务时会出现SVN + SSH身份验证

时间:2009-08-27 15:45:09

标签: svn ssh cruisecontrol.net windows-server-2003

SVN + SSH协议对登录用户非常有用,因为我们在后台为该用户运行了Pageant(PuTTY身份验证代理)。当我们尝试运行ccservice(而不是ccnet.exe应用程序)时,svn + ssh失败。我在配置中缺少什么才能让它正常工作?

<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
  <project name="ProjectXCore" queue="ProjectXQueue" queuePriority="1">

    <workingDirectory>D:\cc\ProjectX\code\trunk\src\</workingDirectory>
    <artifactDirectory>D:\cc\ProjectX\artifact\</artifactDirectory>

    <category>ProjectX</category>
    <webURL>http://localhost/ccnet/</webURL>
    <modificationDelaySeconds>30</modificationDelaySeconds>
    <labeller type="defaultlabeller">
      <prefix>0.1.</prefix>
      <incrementOnFailure>true</incrementOnFailure>
      <labelFormat>000</labelFormat>
    </labeller>
    <state type="state" directory="State" />

    <sourcecontrol type="svn">
      <trunkUrl>svn+ssh://10.10.2.19/srv/svn/ProjectX/trunk/src</trunkUrl>
      <workingDirectory>D:\cc\ProjectX\code\trunk\src</workingDirectory>
      <executable>C:\Program Files\Subversion\bin\svn.exe</executable>
      <username>super</username>
      <password>duper</password>
      <timeout units="minutes">5</timeout>
    </sourcecontrol>
如果有帮助,

TortoiseSvn安装在服务器上。我不确定是否需要添加一些命令行开关才能使它工作或者是什么。

1 个答案:

答案 0 :(得分:1)

我想我已经弄清楚了,这个配置正在运行:

 <sourcecontrol type="svn">
  <trunkUrl>svn+ssh://10.10.10.10/srv/svn/ProjectX/trunk/src</trunkUrl>
  <workingDirectory>D:\cc\ProjectX\code\trunk\src</workingDirectory>
  <executable>C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe</executable>
  <buildArgs> -N -L 3690:localhost:3690 -l super -pw duper -i "C:\Documents and Settings\Super\id_rsa.ppk" -ssh 10.10.10.10 | "C:\Program Files\Subversion\bin\svn.exe" </buildArgs>
  <username>super</username>
  <password>duper</password>
  <timeout units="minutes">5</timeout>
</sourcecontrol>

我把它取回来,配置不起作用,配置的旧版本被缓存: - (

这个现在正在运作:

<sourcecontrol type="svn">
  <trunkUrl>svn+ssh://10.10.2.19/srv/svn/ProjectX/trunk/src</trunkUrl>
  <workingDirectory>D:\cc\ProjectX\code\trunk\src</workingDirectory>
  <executable>"C:\Program Files\Subversion\bin\svn.exe"</executable>
  <username>super</username>
  <password>duper</password>
  <timeout units="minutes">5</timeout>
</sourcecontrol>