如何使用 CruiseControl.NET 和SVN构建特定的修订版



我正在使用 CruiseControl.NET 和SVN构建我的应用程序。目前,我的ccnet.config被配置为从SVN构建最新版本。我需要以某种方式更改它以构建特定的修订版 - 这可能吗?我猜想在下面的 svn-url 中添加一个参数,但这只是一个猜测

我的目标如下所示:

<cb:scope>
<cb:define projectname="1.0 patch" />
<cb:define sldeployhttp.dir="\xx.xx.xx.xxqa" />
<cb:define sldeployhttps.dir="\xx.xx.xx.xxqa" />
<cb:define publishedeploy.dir="C:Published" />
<cb:define iispublishedeploy="PATCH" />
<cb:define iisPublished.dir ="PATCH"/>
<cb:define target="myproj-patch" />
<cb:define svn-viewname="1.0_Patch" />
<cb:define svn-url="http://myServer/branches/$(svn-viewname)" />
<cb:include href="$(svn-viewdir)$(svn-viewname)BuildAutomationfoo.xml"/>

我的SVN思想有点消退,但是你不能通过在网络URL末尾加上后缀来获得旧修订吗?

http://myServer/branches/$(svn-viewname)@333

其中 333 是修订号。

最新更新