开发者

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

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, 开发者_Go百科but Hudson use 1200 to build.

Do you know the reason behind the scenes?


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.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜