本文介绍了连接到源代码管理时出现CruiseControlException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Cruise Control收到一个关于无法连接到服务器的异常消息。但是,如果我强制构建,则效果很好。我还尝试了使用repo浏览器将服务器连接到服务器,而没有任何问题,因此我知道服务器已启动并正在运行。我正在运行CCNET 1.4.4和SlikSVN 1.5.3。以下是CCNET日志中的异常:

I'm getting an exception from Cruise Control about not being able to connect to the server. However, if I force a build it works just fine. I've also tried using the repo-browser to connect to the server without any problems so I know that the server is up and running. I'm running CCNET 1.4.4 and SlikSVN 1.5.3. Below is the exception from the CCNET log:

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)

任何想法都将不胜感激!

Any ideas would be much appreciated!

推荐答案

我终于成功了再次,这就是我所做的。

I finally got it working again and this is what I've done.


  • 在CCNET配置中将maxSourceControlRetries设置为10

  • 在我的CCNET配置中将sourceControlErrorHandling设置为ReportOnEveryRetryAmount

  • 切换到最新版本的CollabNet客户端

事实证明,CCNET在以前的版本中吞没了诸如此类的sourcecontrol-errors,所以即使在我更新到CCNET 1.4.4之前,我可能也遇到了麻烦,但是却没有意识到。

As it turns out, CCNET swallowed sourcecontrol-errors like this in previous versions so I might have had troubles even before I updated to CCNET 1.4.4 but was unaware of it.

感谢您的评论!

这篇关于连接到源代码管理时出现CruiseControlException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-09 12:53