巡航控制& Git:“源控制操作已经超时。”错误

时间:2013-06-04 15:47:29

标签: git cruisecontrol.net

我正在尝试为巡航控制创建一个新项目。 为此,我将其添加到我的ccnet.config文件

<project name="MyProj"
         description="MyProjproject">

  <triggers/>

  <sourcecontrol type="git">
    <repository>GitAddr</repository>
    <branch>releaseName</branch>
    <autoGetSource>true</autoGetSource>
    <fetchSubmodules>true</fetchSubmodules>
    <executable>C:\Program Files (x86)\Git\cmd\git.exe</executable>
    <tagOnSuccess>false</tagOnSuccess>
    <commitBuildModifications>false</commitBuildModifications>
    <commitUntrackedFiles>false</commitUntrackedFiles>
    <tagCommitMessage>Unation Web Build {0}</tagCommitMessage>
    <tagNameFormat>Unation-Web-Build-{0}</tagNameFormat>
    <committerName>Oscar Albrecht</committerName>
    <committerEMail>oalbrecht@unation.com</committerEMail>
    <workingDirectory>d:\GIT\Sources\WEB</workingDirectory>
    <timeout>60000</timeout>
  </sourcecontrol>

  <tasks>
      <exec>
        <!-- if you want the task to fail, ping an unknown server -->
        <executable>ping.exe</executable>
        <buildArgs>localhost</buildArgs>
        <buildTimeoutSeconds>15</buildTimeoutSeconds>
        <description>Pinging a server</description>
      </exec>
  </tasks>

  <publishers>
    <xmllogger />
    <artifactcleanup cleanUpMethod="KeepLastXBuilds"
                     cleanUpValue="50" />
  </publishers>

</project>

但我得到了

ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation has timed out.
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Git.GitFetch(IIntegrationResult result)
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Git.CreateUpateLocalRepository(IIntegrationResult result)
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Git.GetModifications(IIntegrationResult from, IIntegrationResult to)
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModificationsWithLogging(ISourceControl sc, IIntegrationResult from, IIntegrationResult to)
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications(ISourceControl sourceControl, IIntegrationResult lastBuild, IIntegrationResult thisBuild)
   at ThoughtWorks.CruiseControl.Core.IntegrationRunner.GetModifications(IIntegrationResult from, IIntegrationResult to)
   at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)

我能够使用git扩展和git bash来提取文件,但CruiseControl给了我这个错误。 这是非常奇怪和令人沮丧的,因为有一段时间它工作,我甚至可以创建一个msbuild文件来编译它等等,但它没有改变就停止工作,现在我被卡住了。

会发生什么?

编辑:我将超时时间增加到2小时。我开始构建,我也开始在第二台机器拉。我可以完成3次拉动,我在ccnet中获得的信息仍然是“git fetch origin”。它似乎被锁定了。 有没有办法检查操作的控制台输出?

2 个答案:

答案 0 :(得分:3)

可能是帐户问题。您需要更改CC服务帐户.Git基于与用户帐户绑定的ssh和ssh。

答案 1 :(得分:0)

这是帐户问题。我遇到了类似的问题,并通过从 services.msc 重新启动服务 CruiseControl.NET服务器来解决它。