新提交后,詹金斯结帐(SVN)失败

时间:2019-03-25 08:04:21

标签: jenkins svn

这是我的情况:
使用svn作为我的SCM
Jenkins Job在Linux奴隶上运行
Jenkins主服务器托管在无法访问svn服务器的Windows上

起初,我的工作很好,但轮询始终失败。

Started on Mar 25, 2019 1:52:00 PM
Received SCM poll call on master for PS8318_lint_chk on Mar 25, 2019 1:52:00 PM
ERROR: Failed to check repository revision for http://192.168.2.109/svn/xxxxxxxx
org.tmatesoft.svn.core.SVNAuthenticationException: svn: E170001: OPTIONS of '/svn/xxxxxxxx': 403 Forbidden (http://192.168.2.109)
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:68)
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:57)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:760)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:352)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:340)
    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:910)
    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:702)
    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:113)
    at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1035)
    at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:164)
    at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.getRevisionNumber(SvnNgRepositoryAccess.java:119)
    at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.getLocations(SvnRepositoryAccess.java:178)
    at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepositoryFor(SvnNgRepositoryAccess.java:43)
    at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteGetInfo.run(SvnRemoteGetInfo.java:47)
    at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteGetInfo.run(SvnRemoteGetInfo.java:31)
    at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)
    at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1239)
    at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
    at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2535)
    at hudson.scm.SubversionSCM.parseSvnInfo(SubversionSCM.java:1279)
    at hudson.scm.CompareAgainstBaselineCallable.call(CompareAgainstBaselineCallable.java:79)
    at hudson.scm.CompareAgainstBaselineCallable.call(CompareAgainstBaselineCallable.java:27)
    at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
    at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1476)
    at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:400)
    at hudson.scm.SCM.poll(SCM.java:417)
    at hudson.model.AbstractProject._poll(AbstractProject.java:1390)
    at hudson.model.AbstractProject.poll(AbstractProject.java:1293)
    at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:603)
    at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:649)
    at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

我认为它使用master来轮询master无法访问的svn。
因此,我让它定期构建,这又带来了另一个问题。

每次新提交后,它都将无法检出,并且如果我再次触发它将会成功。
但是更改列表不正确。
我认为它无法签出,但是在第一次运行时以某种方式更新了修订信息。

Building remotely on slave in workspace /home/xxxxxxxx

Updating http://192.168.2.109/svn/xxxxxxxx at revision '2019-03-25T14:39:23.387 +0800'
Using sole credentials xxxxxxxx/****** in realm ?<http://192.168.2.109:80> Subversion Repository?
At revision 742

org.tmatesoft.svn.core.SVNAuthenticationException: svn: E170001: OPTIONS of '/svn/xxxxxxxx': 403 Forbidden (http://192.168.2.109)
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:68)
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:57)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:760)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:352)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:340)
    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:910)
    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:702)
    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:113)
    at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1035)
    at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:164)
    at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.getRevisionNumber(SvnNgRepositoryAccess.java:119)
    at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.getLocations(SvnRepositoryAccess.java:178)
    at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepositoryFor(SvnNgRepositoryAccess.java:43)
    at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:161)
    at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:35)
    at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)
    at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1239)
    at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
    at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:968)
    at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:873)
    at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:190)
Caused: hudson.util.IOException2: revision check failed on http://192.168.2.109/svn/xxxxxxxx
    at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:204)
    at hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:124)
    at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:757)
    at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:898)
    at hudson.scm.SCM.checkout(SCM.java:504)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
    at hudson.model.Run.execute(Run.java:1816)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:429)

出于某些原因,我不允许主服务器访问svn服务器
有什么方法可以解决此问题,甚至可以修复轮询功能?

0 个答案:

没有答案