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.
Now create a Jenkins build job. Select New Item, give the build project a name such as svn-tomcat-demo, select Maven project, and click OK. Under source code management, select Subversion and enter your SVN repository URL and credential. Please download the sample code and check the code into your SVN server.
Using the latest versions of Subclipse, you can actually view them without using the cmd prompt. On the file, simply right-click => Team => Switch to another branch/tag/revision.
The Jenkins Subversion plugin uses SvnKit as the subversion client and doesn't require a native client to be available on the host. Setting up a CI server with Jenkins and Subversion is limited to a very minimal installation process: just run the Jenkins WAR and you're done.
(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 !
The final syntax I used for my repo URL was this one: http://mySVNdomain.com/svn/myREPOname/trunk@414 where 414 was, of course, the revision I needed.
Don't miss the possibility of using @$param if you need something dynamic
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With