Jenkins – How to build a specific revision of SVN in Hudson/Jenkins

hudsonJenkinsjenkins-pluginssvn

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.

Best Answer

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