tags:

views:

614

answers:

3

Hi folks:

Background:

We use NAnt as our building tool.

Question:

How can I tell Hudson to build a specific revision in SVN, instead of the latest one by default?

Thanks.

+1  A: 

Tag the revision, give Hudson the tag url

Leon van der Walt
+2  A: 

You configure the svn location including the revision number

<SVN_URL>@revision

Instead of putting the revision number hard coded in there you can use a parameter for the hudson job

<SVN_URL>@$param
Peter Schuetze
Did u ever try this: http://wiki.hudson-ci.org/display/HUDSON/Subversion+Release+Manager
Ricky
Does this feature require a specific SVN version above? I got this error message: '/branches/xxx/website@4518' doesn't exist in the repository. Maybe you meant '/branches/xxx/website'?
Ricky
Even so you will get the error message described above when configuring the job, it will checkout the right revision of your code.
Peter Schuetze
BTW, I never tried the Subversion Release Manager Plugin
Peter Schuetze
This is actually the solution for it. It works and the @revision is also documented, so it is not such a horrible hacking thingy like this plugin where you have to alter code of the SVNplugin to make it work.
Ansgar
A: 

This is a plugin for Hudson that works really well. It displays a list of revisions and allows you to select one to build.

http://wiki.hudson-ci.org/display/HUDSON/Subversion+Release+Manager

BLeB