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

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


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


(Lacking rep to comment, so I answer instead)

Peter answer's works well !

The syntax wasn't very clear to me. The solution was... reading Jenkins contextual help !As simple as this !

The final syntax I used for my repo URL was this one: http://mySVNdomain.com/svn/myREPOname/trunk@414where 414 was, of course, the revision I needed.

Don't miss the possibility of using @$param if you need something dynamic


Tag the revision, give Hudson the tag url