Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why up-to-date files committed to SVN will not be immediately pulled out by Hudson to build

Tags:

svn

hudson

I sometimes found our Hudson will not pull up-to-date versions of files from SVN to build up the package. For example, current latest revision is 1201, but Hudson use 1200 to build.

Do you know the reason behind the scenes?

like image 821
Ricky Avatar asked Mar 18 '10 06:03

Ricky


2 Answers

This is a common problem when there is clock skew between Hudson and the Subversion server. I'd suggest looking at the timestamps of your recent commits, to see if the subversion server is giving future times. Or, potentially the Hudson server's clock has falled behind.

Here is one thread from the Hudson mailing list about a similar issue, and HUDSON-1244 is the Hudson issue that introduced some detection of the problem.

like image 53
Michael Donohue Avatar answered Oct 15 '22 22:10

Michael Donohue


We have the same problem when we use svn update. It happens with hudson and also for developers using the eclipse ide. Our workaround is to delete the local project and checkout the whole project again. Just make sure not to use the "use update" option in Hudson.

The clock should not be a problem, since Hudson and subversion (actually visualsvn) run on the same server.

like image 23
Peter Schuetze Avatar answered Oct 15 '22 22:10

Peter Schuetze