2009-06-23 38 views
4

我得到一個Cruise Control關於無法連接到服務器的異常。但是,如果我強制構建它就可以。我也嘗試使用repo-browser連接到服務器而沒有任何問題,所以我知道服務器已啓動並正在運行。我正在運行CCNET 1.4.4和SlikSVN 1.5.3。以下是來自CCNET日誌的例外:CruiseControlException當連接到源代碼控制

ThoughtWorks.CruiseControl.Core.CruiseControlException: 
Source control operation failed: svn: OPTIONS of 'https://some-server.com/trunk': could not connect to server (https://some-server.com) . 
Process command: C:\Program\SlikSvn\bin\svn.exe log https://some-server.com/trunk -r "{2009-06-23T01:36:19Z}:{2009-06-23T07:20:25Z}" --verbose --xml --username ccnet --password auto --non-interactive --no-auth-cache 
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo) 
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.GetModifications(IIntegrationResult from, IIntegrationResult to) 
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.MultiSourceControl.GetModifications(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) vid ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request) 

任何想法將不勝感激!

+0

那麼它給你那裏的命令。 「C:\ Program \ SlikSvn \ bin \ svn.exe日誌https://some-server.com/trunk -r」{2009-06-23T01:36:19Z}:{2009-06-23T07:20:25Z }「--verbose --xml --username ccnet --password auto --non-interactive --no-auth-cache」我會嘗試在命令提示符中輸入該命令,看看是否會收到更有幫助的錯誤消息。 – 2009-06-23 08:13:59

+0

我也這樣做了,它根本不會給我任何錯誤。一切正常。 – 2009-06-23 10:03:31

回答

5

我終於再次工作,這就是我所做的。

  • 設置maxSourceControlRetries至10日在我CCNET-配置
  • 設置sourceControlErrorHandling到ReportOnEveryRetryAmount我CCNET-配置
  • 切換到CollabNet客戶

的最新版本,事實證明,CCNET在之前的版本中吞噬了sourcecontrol-errors這樣的錯誤,所以即使在我更新到CCNET 1.4.4之前,我可能會遇到麻煩,但並未意識到這一點。

感謝您的意見!

0

我在更改代碼凍結附近的SVN源代碼時遇到了此問題。我創建一個發佈標籤,並更改源代碼控制部分以引用標籤而不是開發分支。但是,構建工作目錄仍將包含開發分支的源代碼,包括所有的SVN元文件。這觸發了SVN源(原始開發分支和新版本標籤)的衝突導致的異常。

在這種情況下,簡單的解決方案是從構建工作目錄中刪除代碼(目錄和全部),並讓CruiseControl從新位置爲開發分支拉取源代碼。

以下是ccnet.config文件的摘錄,該文件已被修改以引起此問題。它看起來很熟悉嗎?

<sourcecontrol type="multi"> 
    <sourceControls> 
     <svn> 
      <!-- 
      <trunkUrl>https://svn/Engineering/Applications/Quasar/branches/TeamRowdy</trunkUrl> 
      --> 
      <trunkUrl>https://svn/Engineering/Applications/Quasar/tags/REL-TeamRowdy-RC1-2013.07.17.003</trunkUrl> 
      <workingDirectory>Quasar</workingDirectory> 
      <cleanUp>true</cleanUp> 
      <forceUpdate>true</forceUpdate> 
     </svn> 
     <svn> 
      <!-- 
      <trunkUrl>https://svn/Engineering/Applications/Acme/branches/TeamRowdy</trunkUrl> 
      --> 
      <trunkUrl>https://svn/Engineering/Applications/Acme/tags/REL-TeamRowdy-RC1-2013.07.17.003</trunkUrl> 
      <workingDirectory>Acme</workingDirectory> 
      <cleanCopy>true</cleanCopy> 
     </svn> 
    </sourceControls> 
</sourcecontrol>