Hudson/Jenkins -- 消除svn警告: "clock of the subversion server appears to be out of sync"

本文介绍了解决在Hudson/Jenkins中配置SVN URL时出现的警告信息的方法。通过在SVN URL后添加@HEAD参数,可以确保每次都能获取到最新的代码版本,避免不一致的检出行为。

Hudson/Jenkins中配置svn的URL时,有时会出现如下警告信息:

“WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior”

基本选择每次重新checkout最新的版本,也会出现该警告信息,其解决方法非常简单,只需要在svn的url后面加上@HEAD,即每次都sync最新版本的代码。如下图所示:




Started by user Yilun Wu Running as SYSTEM Building on the built-in node in workspace /var/jenkins_home/workspace/Tapo_test [Tapo_test] $ /bin/sh -xe /tmp/jenkins6431093081201892627.sh + env JENKINS_HOME=/var/jenkins_home JENKINS_UC_EXPERIMENTAL=https://updates.jenkins.io/experimental CI=true RUN_CHANGES_DISPLAY_URL=http://10.0.138.175/job/Tapo_test/5/display/redirect?page=changes HOSTNAME=45104600b3f3 NODE_LABELS=built-in SHLVL=0 HUDSON_URL=http://10.0.138.175/ HOME=/var/jenkins_home BUILD_URL=http://10.0.138.175/job/Tapo_test/5/ JENKINS_SERVER_COOKIE=b6155e08db5e2646 HUDSON_COOKIE=a4c855f7-07d4-4936-879f-ba66a76ca71d JENKINS_UC=https://updates.jenkins.io REF=/usr/share/jenkins/ref WORKSPACE=/var/jenkins_home/workspace/Tapo_test NODE_NAME=built-in RUN_ARTIFACTS_DISPLAY_URL=http://10.0.138.175/job/Tapo_test/5/display/redirect?page=artifacts DOCKERFILE_LOCATION=dockerfile/ EXECUTOR_NUMBER=0 BUILD_DISPLAY_NAME=#5 JENKINS_INCREMENTALS_REPO_MIRROR=https://repo.jenkins-ci.org/incrementals JENKINS_VERSION=2.516.3 RUN_TESTS_DISPLAY_URL=http://10.0.138.175/job/Tapo_test/5/display/redirect?page=tests HUDSON_HOME=/var/jenkins_home JOB_BASE_NAME=Tapo_test PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin BUILD_ID=5 BUILD_TAG=jenkins-Tapo_test-5 LANG=C.UTF-8 JENKINS_URL=http://10.0.138.175/ JOB_URL=http://10.0.138.175/job/Tapo_test/ BUILD_NUMBER=5 JENKINS_SLAVE_AGENT_PORT=50000 RUN_DISPLAY_URL=http://10.0.138.175/job/Tapo_test/5/display/redirect HUDSON_SERVER_COOKIE=b6155e08db5e2646 JOB_DISPLAY_URL=http://10.0.138.175/job/Tapo_test/display/redirect JOB_NAME=Tapo_test COPY_REFERENCE_FILE_LOG=/var/jenkins_home/copy_reference_file.log JAVA_HOME=/opt/java/openjdk PWD=/var/jenkins_home/workspace/Tapo_test WORKSPACE_TMP=/var/jenkins_home/workspace/Tapo_test@tmp + BRANCH_NAME=Tapo/H500 + command -v repo + echo Installing repo tool from Google... Installing repo tool from Google... + mkdir -p /var/jenkins_home/.bin + export PATH=/var/jenkins_home/.bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin + curl https://storage.googleapis.com/git-repo-downloads/repo % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 44952 100 44952 0 0 297k 0 --:--:-- --:--:-- --:--:-- 296k + chmod a+rx /var/jenkins_home/.bin/repo + echo Repo tool installed successfully Repo tool installed successfully + [ ! -d .repo/repo ] + echo Repo not initialized or incomplete, setting up... Repo not initialized or incomplete, setting up... + rm -rf .repo CAMEOS#Remove Any dirs related to source code + NEED_INIT=true + git config --global user.name Jenkins CI + git config --global user.email jenkins@tp-link.com + git config --global color.ui false + export REPO_NO_SELF_UPDATE=1 + export GIT_TERMINAL_PROMPT=0 + export GIT_SSH_COMMAND=ssh -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null + [ true = true ] + echo Running repo init (first time)... Running repo init (first time)... + repo init -u ssh://gerrit/manifests/CEE -b Tapo/H500 -m manifest.xml /usr/bin/env: ‘python3’: No such file or directory Build step 'Execute shell' marked build as failure Archiving artifacts Stopping all containers Finished: FAILURE
最新发布
12-25
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值