我正在嘗試使用Cruisecontrol.net最新版本使用源代碼管理作爲「SVN」來集成自動構建過程。在運行CruiseControl構建時,我收到了錯誤。使用SVN和CruiseControl.net構建應用程序時出錯
ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: svn: E175002: Unable to connect to a repository at URL 'https://abc01.test.co.in:1234/svn/test/trunk/Myapp/My%20Test%20Application'
svn: E175002: OPTIONS of 'https://abc01.test.co.in:1234/svn/test/trunk/Myapp/My%20Test%20Application': Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted (https://abc01.test.co.in:1234)
. Process command: svn log "https://abc01.test.co.in:1234/svn/test/trunk/Myapp/My Test Application" -r "{2013-06-18T11:39:13Z}:{2013-06-18T11:41:24Z}" --verbose --xml --username test_user -- password ******** --no-auth-cache --non-interactive
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」配置文件看起來如下,
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<!-- This is your CruiseControl.NET Server Configuration file. Add your projects below! -->
<project>
<name>My Test App</name>
<webURL>http://localhost/ccnet-dashboard/?_action_ViewProjectReport=true&server=local&project=My Test App</webURL>
<triggers>
<intervalTrigger seconds="120"/>
</triggers>
<workingDirectory>D:\Repository\Myapp\My Test Application</workingDirectory>
<modificationDelaySeconds>2</modificationDelaySeconds>
<sourcecontrol type="svn">
<trunkUrl>https://abc01.test.co.in:1234/svn/test/trunk/Myapp/My Test Application</trunkUrl>
<workingDirectory>D:\Repository\Myapp\My Test Application</workingDirectory>
<username>test_user</username>
<password>user123</password>
</sourcecontrol>
<tasks>
<msbuild>
<executable>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable>
<workingDirectory>D:\Repository\Myapp\My Test Application</workingDirectory>
<projectFile>SampleApp.sln</projectFile>
<targets>ReBuild</targets >
<timeout>600</timeout >
<logger>c:\Program Files\CruiseControl.NET\server\Rodemeyer.MsBuildToCCNet.dll</logger >
</msbuild>
</tasks>
<publishers>
<merge>
<files>
<file>D:\CruiseControlBuildArtifact\build\*-results.xml</file>
<file>D:\CruiseControlBuildArtifact\build\fxcop\*.xml</file>
<file>D:\CruiseControlBuildArtifact\build\unittests\Coverage.xml</file>
</files>
</merge>
<xmllogger />
<statistics />
</publishers>
<externalLinks>
<externalLink name="IIS Root Web on Localhost" url="http://localhost/" />
<externalLink name="Google" url="http://www.google.com/search?hl=en&lr=&q=%22CruiseControl.NET%22&btnG=Search" />
</externalLinks>
</project>
</cruisecontrol>
如果我採取這一應用程序的本地版本,並使用CruiseControl的構建,它工作正常,但在使用本通過SVN,我得到這個錯誤。
請在這裏提出需要糾正的問題。
問候, 馬諾
您應該閱讀錯誤消息...您的ssl證書無效。你可以手動接受它,或者添加證書。 http://stackoverflow.com/questions/3147660/server-certificate-verification-failed-issuer-is-not-trusted – thekbb
當我嘗試使用IE /通過TortosieSVN連接svn,它工作正常,我該如何接受它手動或添加證書。你能否讓我知道步驟?另外,當我嘗試從命令提示符運行命令「svn list」時,它不會要求我確認證書,並且它會顯示指定URL路徑上的可用文件夾。 –
user1662589