Jenkins/Hudson synchronization problems with SVN

Some people are experimenting problems between SVN servers and Jenkins/Hudson servers because of synchronization among the machines. The bad thing is that some people are having the problem even if the machines are synchronized using the same NTP clock. The message you can read in the log from Jenkin’s jobs is:

WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior.

Well, there is an easy solution to that. You must change the Jenkin’s job configuration so the URL that points to the SVN branch asks for the HEAD revision. Add @HEAD to your URL so Jenkins will check for the last revision number within your branch instead of checking the timestamp.

http://svn.yourserver.com/svn/project/trunk@HEAD
http://svn.yourserver.com/svn/project/MY_BRANCH@HEAD

Enjoy!