views:

322

answers:

1

I would like the ability to pass a specific revision to the SVN task (in ccnet.config) that I want the buildserver to checkout from SVN and build. So I don't always want the latest revision. And no, I don't want to create a tag for every successful build.

Looking at the configuration elements here: http://ccnet.sourceforge.net/CCNET/Subversion%20Source%20Control%20Block.html

And I cannot see anything that allows me to do this. The idea is to be able to pass an optional parameter (using the Dynamic Properties in 1.5) and simply pass that into something for the SVN task. Is this achievable at all with the current CCNET SVN plugin? Am I missing something obvious?

+2  A: 

You can set up your own nant exec task to retrieve the source from subversion rather than using the sourceControlProvider block. This would allow you to retrieve whichever revision you like.

If you still want to use the sourceControlProvider block to trigger the build, set autoGetSource="false". However, seeing as you are wanting to build a specific revision, I don't know if the trigger functionality of the sourceControlProvider would be useful.

g .
Have you got an example code block for this?
Andi