Pass arguments to svn when using CruiseControl.net

半世苍凉 提交于 2019-12-08 02:27:20

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/12847121/pass-arguments-to-svn-when-using-cruisecontrol-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!