Jenkins检测到SVN更改,但不更新工作空间吗? [英] Jenkins detects SVN changes but doesn't update workspace?

查看:425
本文介绍了Jenkins检测到SVN更改,但不更新工作空间吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Jenkins 1.461,并且在使用SVN轮询时遇到问题.我的存储库URL的格式为svn + ssh:// * **** .我已将Jenkins配置为每5分钟轮询一次更改.发生的情况是每5分钟检测到一次更改:

I'm using Jenkins 1.461 and I have an issue when using SVN polling. My repository URL has the form svn+ssh://*****. I've configured Jenkins to poll for changes every 5 minutes. What happens is that every 5 minutes, changes are detected :

从2012年5月2日开始8:26:24 PM收到针对的SCM民意调查 XXXXXXXXX on May 2,2012 8:26:25 PM svn + ssh://X.X.X.X/svn/XXXX/XXXXXXXXX/XXXXXXXX/trunk正在修订 26,192(原为26,181)更改为完成.花费了2.6秒的更改时间

Started on May 2, 2012 8:26:24 PM Received SCM poll call on for XXXXXXXXX on May 2, 2012 8:26:25 PM svn+ssh://X.X.X.X/svn/XXXX/XXXXXXXXX/XXXXXXXX/trunk is at revision 26,192 (changed from 26,181) Done. Took 2.6 sec Changes found

但是,每次轮询后工作空间都不会更新.工作区的最新版本仍然是26181,而不是预期的26192.我不明白为什么.有什么主意吗?

But, the workspace is not updated after each poll. The last revision of the workspace is still 26181 and not 26192 as expected. I don't understand why. Any idea?

米凯尔

推荐答案

您的Jenkins和SVN服务器上的时钟是否同步?如果时钟不同步一点,就会发生奇怪的事情.我本人并没有使用SVN,所以我不记得这是否是症状之一,但是最好通过检查时钟来开始.

Are the clocks on your Jenkins and SVN server in sync? If the clocks are off by even a little, strange things will happen. I do not use SVN much myself, so I do not remember if this was one of the symptoms but it would be good to start by checking the clocks.

最简单的方法是在两台主机上安装ntpd,将它们配置为针对同一源进行同步,而不必理会.如果您的组织中没有ntp服务器,请检查 http://www.pool.ntp.org

Easiest would be to install ntpd on both hosts, configure them to sync against the same source and forget about it. If you do not have an ntp server in your organization, check http://www.pool.ntp.org

这篇关于Jenkins检测到SVN更改,但不更新工作空间吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆