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

Ricky picture Ricky · Feb 24, 2010 · Viewed 41.4k times · Source

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.

Answer

Peter Schuetze picture Peter Schuetze · Feb 24, 2010

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