Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force Jenkins Subversion plugin to use HEAD revision

I was using Hudson for doing my project builds and now planning to migrate to Jenkins.

The build server time is not in sync with the developer machines, and hence svn update does not work correctly. In Hudson, I was able to set the revision policy to HEAD, whereas its missing in Jenkins.

I searched a bit and saw that a Jira is created for this issue, but did not find a working solution for the problem.

I tried to manually install the Hudson subversion plugin in Jenkins, and the Revision policy option came up, but for some reason it caused an exception while setting the svn authentication info.

If anyone knows a solution to make this change in Jenkins, kindly reply.

like image 248
jobinbasani Avatar asked Jul 31 '12 19:07

jobinbasani


1 Answers

Figured out. Append all SVN urls with @HEAD and svn update will happen from HEAD!

like image 60
jobinbasani Avatar answered Oct 11 '22 11:10

jobinbasani