Subversion block in CruiseControl.NET - passing a specific version number?

I would like to pass a specific revision of the SVN task (in ccnet.config) that I want the build server to exit SVN and build. Therefore, I do not always need the latest revision. And no, I donโ€™t want to create a tag for every successful build.

Take a look at the configuration items here: http://ccnet.sourceforge.net/CCNET/Subversion%20Source%20Control%20Block.html

And I donโ€™t see anything that allows me to do this. The idea is to be able to pass an optional parameter (using Dynamic Properties in 1.5) and just pass it into something for the SVN task. Is this even possible with the current CCNET SVN plugin? Am I missing something?

+4
source share
2 answers

You can configure your own exec task to extract the source from the disruptive program, rather than using the sourceControlProvider block. This will allow you to extract the option you need.

If you still want to use the sourceControlProvider block to start the build, set autoGetSource = "false". However, seeing that you want to create a specific revision, I do not know if the sourceControlProvider launch function will be useful.

+4
source

Easily achieved directly using CCNET scripts as follows:

<project name="whatever"> <parameters> <textParameter name="VersionToBuild"> <display>SVN Version to Build</display> <description>Which SVN version to Build?</description> <default>HEAD</default> <required>true</required> </textParameter> </parameters> <sourcecontrol type="svn"> <trunkUrl>http://svnrepo.mydomain.com:80/svn/myProject/ trunk@ $[VersionToBuild]</trunkUrl> <workingDirectory>c:\Checkout\myProjectTrunk</workingDirectory> <executable>c:\Subversion\bin\svn.exe</executable> <username>dummy</username> <password>dummy</password> </sourcecontrol> </project> 
+8
source

All Articles