Question

I would like to pass arguments to SVN while I'm using CruiseControl.net. I have the following sourcecontrol block in my ccnet.config file:

<sourcecontrol type="svn" username="username" password="password">
    <trunkUrl>https://www.example.com/blah/blah/blah</trunkUrl>
    <workingDirectory>C:\Subversion\blah\</workingDirectory>
</sourcecontrol> 

Is there anyway that I can alter the sourcecontrol block so that is passes some arguments to svn?

Était-ce utile?

La solution

I found my own answer. Apparently the only way I could figure out how to do this was to alter my sourcecontrol block by adding the executable argument with a batch file I wrote like so:

<sourcecontrol type="svn" username="username" password="password" executable="C:\Subversion\blah\mysvn.bat">
    <trunkUrl>https://www.example.com/blah/blah/blah</trunkUrl>
    <workingDirectory>C:\Subversion\blah\</workingDirectory>
</sourcecontrol> 

and then in mysvn.bat I have:

svn %* --trust-server-cert

where --trust-server-cert is the argument I wanted to add

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top