jenkins构建,拉取不到最新版本代码,报clock of the subversion server appears to be out of sync
2019-05-29 10:43
2046 查看
一、问题描述
今天遇到个问题,我这边提交了代码后,一般会马上去jenkins上点一下,构建到开发环境上。
但是发现修改没生效,后来发现,提交的版本假设是3250,但是jenkins构建使用的版本为3249,或者3248,总之差一两个版本。
一开始没找到问题,以为只是偶然,后面多来了几次后,仔细看了看日志,发现有个警告(下面标红的那行):
clock of the subversion server appears to be out of sync
如下:
09:53:43 Started by user ckl 09:53:43 Building in workspace /root/.jenkins/workspace/common_code 09:53:43 Updating http://192.168.19.225/svn/BOL2.0/trunk/A8_resource/BOL/Server at revision '2019-05-29T09:53:43.736 +0800' --quiet 09:53:44 Using sole credentials hezhonghao/****** in realm ‘<http://192.168.19.225:80> CollabNet Subversion Repository’ 09:53:44 At revision 3282 09:53:44 09:53:45 WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior.
原因就是两边服务器时间不一样,我这边就是两台服务器时间不同步导致的。
二、解决方式
一共两种方式:
1、在svn的路径后面加上@head
这个是网上的,我没试这种方式。
2、 直接将两个服务器的时间都同步为互联网标准时间
这个直接参考网上ntpdate吧,比如:
https://blog.csdn.net/qq_383698639/article/details/80263322
但是一般来说,网上的那些时间服务器延迟很大,我是直接找了运维,给了个内网的时间同步服务器地址。
相关文章推荐
- Hudson/Jenkins -- 消除svn警告: "clock of the subversion server appears to be out of sync"
- Hudson/Jenkins -- 消除svn警告: "clock of the subversion server appears to be out of sync"
- 在myeclipse利用ant构建时遇到The path xxx appears to be part of Subversion 1.7 (SVNKit 1.4) or greater解决办法
- Failed to load resource: the server responded with a status of 504 (Gateway Time-out)
- The Server may be running out of resources, or the assembly may not be trusted
- SVN appears to be part of a Subversion 问题心得
- In order to run a trace against SQL Server you must be a member of sysadmin fixed server role or have the ALTER TRACE permission.
- Hbase的regionServer无法启动报ClockOutOfSyncException解决方法
- Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting
- Failed to load resource: the server responded with a status of 504 (Gateway Time-out)
- Apache:Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved
- a very good guide to makethe Most Out of the SQL Server 2005 Performance Dashboard
- Hbase启动从节点报错:FATAL org.apache.hadoop.hbase.regionserver.HRegionServer:...ClockOutOfSyncException
- Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting的解决方法
- How to configure the Virtual Path of ASP.NET Development Server to be “Root”
- The connection to adb is down, and a severe error has occured.adb server is out of date ADB server d
- svn1.7 appears to be part of a Subversion 1.7 or greater working copy. Please upgrade your Subversio
- SVN appears to be part of a Subversion解决方法
- SVN the working copy needs to be upgraded svn 低版本SVN检出代码,高版本SVN提交不了解决方法