I am using CruiseControl.net for continous integration. I've created a repository for my project using VisualSvn server (uses Windows Authentication). Both the servers are hosted in the same system (Os-Microsoft Windows Server 2003 sp2).
When i force build the project using CruiseControl.net "Failed task(s): Svn: CheckForModifications" is shown as the message. When i checked the build report, it says as follows:
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)
My SourceControl node in the ccnet.config is as shown below:
<sourcecontrol type="svn">
<executable>C:\Program Files\VisualSVN Server\bin\svn.exe</executable>
<trunkUrl>
check out url
</trunkUrl>
<workingDirectory>
C:\ProjectWorkingDirectories\folder\Source
</workingDirectory>
<username>
ccnetadmin
</username>
<password>
cruise
</password>
</sourcecontrol>
Can any one suggest how to avoid this error?
The subversion error message says
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).
This tells me that your 'svn' doesn't trust the https certificate of your server.
You can fix this by performing something like
svn info https://sp-ci.sbsnetwork.local:8443/svn/IntranetPortal/Source
as the user running cruisecontrol and then accept the certificate.
(Another option would be to make CruiseControl pass --trust-server-cert to svn, but I don't know which configuration option you need for that)
Server certificate verification failed: issuer is not trusted
Either connect via HTTP or add the CA certificate to the build machine.
Take a look here for a similar (but slightly different) problem that I had a little while ago.
Basically you cannot run the service as the normal 'SYSTEM' account, you need to specify and configure a local user, with the appropriate permissions and configure the service to run as that user.
Then log into the server as the user and run any svn command at the command line;
Bert suggests:
svn info https://sp-ci.sbsnetwork.local:8443/svn/IntranetPortal/Source
you should be prompted for the SVN username and password which are then cached in the appropriate location. You should also be prompted to accept the certificate - which you should do.
Now the service should run without any problems.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With