我正在使用CruiseControl.net进行持续集成.我使用VisualSvn服务器为我的项目创建了一个存储库(使用Windows身份验证).两台服务器都托管在同一系统中(Os-Microsoft Windows Server 2003 sp2).
当我使用CruiseControl.net强制构建项目时," 失败的任务:Svn:CheckForModifications "显示为消息.当我检查构建报告时,它说如下:
BUILD EXCEPTION Error Message: ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: svn: OPTIONS of 'https://system:8443/svn/folder/Source': **Server certificate verification failed: issuer is not trusted** (https://system:8443). Process command: C:\Program Files\VisualSVN Server\bin\svn.exe log **sameUrlAbove** -r "{2010-04-29T08:35:26Z}:{2010-04-29T09:04:02Z}" --verbose --xml --username ccnetadmin --password cruise --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.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)
ccnet.config中的我的SourceControl节点如下所示:
C:\Program Files\VisualSVN Server\bin\svn.exe check out url C:\ProjectWorkingDirectories\folder\Source ccnetadmin cruise
任何人都可以建议如何避免这个错误?
颠覆错误消息说
svn: OPTIONS of 'https://sp-ci.sbsnetwork.local:8443/svn/IntranetPortal/Source': Server certificate verification failed: issuer is not trusted (https://sp-ci.sbsnetwork.local:8443).
这告诉我你的'svn'不信任服务器的https证书.
您可以通过执行类似的操作来解决此问题
svn info https://sp-ci.sbsnetwork.local:8443/svn/IntranetPortal/Source
当用户运行cruisecontrol然后接受证书.
(另一个选择是让CruiseControl将--trust-server-cert传递给svn,但我不知道你需要哪个配置选项)