Jenkins/Hudson synchronization problems with SVN

Posted: June 14, 2012 in Development, Hudson, Jenkins, SVN
Tags: , , , , , , ,

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!

About these ads
Comments
  1. Laiju says:

    Thanx you are life saver…Excellent advise

  2. Thiago says:

    Thanks ! :D

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s