Why up-to-date files committed to SVN will not be

2019-04-29 11:24发布

问题:

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?

回答1:

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.



回答2:

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.



回答3:

Adjusting the clock on the hudson server solved the problem. An if you do this, make sure that you switch off the windows time service. In my case the hudson server was around an hour behind the svn server.



标签: svn hudson