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

发布于 2024-08-03 07:26:58 字数 1433 浏览 2 评论 0原文

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。我不确定是否需要添加一些命令行开关才能使其正常工作或什么。

The SVN+SSH protocol works great for the logged-in user because we have Pageant (PuTTY authentication agent) running in the background for that user. When we try to run the ccservice (as opposed to the ccnet.exe app) the svn+ssh fails. What am I missing in the config to get it working?

<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 is installed on the server if that helps. I'm not sure if I need to add some command-line switches to get it to work or what.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

童话 2024-08-10 07:26:58

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

 <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>

I think I've figured it out, this config is working:

 <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>

I take it back, that config didn't work, an older version of the config was cached :-(

This one is working now though:

<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>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文