Hi

place this svn stuff in a batch file, and do an echo %errorlevel% at the end
this will give you the errorcode that svn returns to CCNet

next replace batch back with the svn command, and update the
<successExitCodes> element with the errorlevel you found.

if you're 100% sure that the command you enter is ok, and want to ignore
any errors,
you can also leave the batch file there, causing all errors to be ignored
--> the exit code of echo %errorlevel% is always 0

with kind regards
Ruben Willems


On 9 August 2012 02:29, Shu Chow <[email protected]> wrote:

> Hi, I'm trying to put in a few extra steps post nant call.  One of them is
> an <exec> call that checks out some code from SVN.
>
> The SVN server is using a self signed certificate and it's causing an
> error after checkout:
>
>
>> <buildresults>
>> <task><buildArgs>/c svn co http://svn.company.com/ checkedOutCode
>> --username username --password
>> password</buildArgs><buildTimeoutSeconds>600</buildTimeoutSeconds><baseDirectory>C:\path</baseDirectory><dynamicValues
>> /><environment
>> /><executable>cmd</executable><priority>Normal</priority><successExitCodes>0</successExitCodes></task>
>>   <message level="Error">Error validating server certificate for
>> 'https://svn.company.com:443':</message>
>>   <message level="Error"> - The certificate is not issued by a trusted
>> authority. Use the</message>
>>   <message level="Error">   fingerprint to validate the certificate
>> manually!</message>
>>   <message level="Error">Certificate information:</message>
>>   <message level="Error"> - Hostname: svn.company.com</message>
>>   <message level="Error"> - Valid: from Wed, 31 Aug 2011 20:58:34 GMT
>> until Sat, 28 Aug 2021 20:58:34 GMT</message>
>>   <message level="Error"> - Issuer: Blah Blah Blah Co.</message>
>>   <message level="Error"> - Fingerprint: aa:bb:cc:11:22:33</message>
>> </buildresults>
>>
>> <buildresults>
>>   <message level="Error">Command line 'cmd /c svn co
>> http://svn.company.com/ checkedOutCode --username username --password
>> password' timed out after 600 seconds.</message>
>> </buildresults>
>> </build>
>
>
>  If I run the svn co command from the DOS prompt manually, the code checks
> out, then I get prompted to either reject or accept or accept permanently
> this certificate.  I've already accepted this certificate permanently, but
> I think it only worked for my user when running the DOS prompt and not the
> CCNet process.  The code checks out fine from CCNet, but apparently the
> prompt is causing the build to hit the 600 seconds mark and time out.
>
> The question is, then, how do I go about ignoring this error?  Is there a
> successExitCodes I can add that will catch this timeout?
>
> Thanks!
>

Reply via email to