本文介绍了使用CruiseControl.net时将参数传递给svn的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在使用CruiseControl.net时将参数传递给SVN。我的ccnet.config文件中有以下sourcecontrol块:
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>
无论如何,我是否可以更改sourcecontrol块,以便将某些参数传递给svn?
Is there anyway that I can alter the sourcecontrol block so that is passes some arguments to svn?
推荐答案
我找到了自己的答案。显然,我唯一能弄清楚该怎么做的方法是通过添加可执行文件参数和我这样写的批处理文件来更改sourcecontrol块:
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>
然后在mysvn.bat中,我有:
and then in mysvn.bat I have:
svn %* --trust-server-cert
其中-trust-server-cert
是我要添加的参数
这篇关于使用CruiseControl.net时将参数传递给svn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!