Hudson SVN插件使私有存储库更新成为例外

时间:2010-11-15 06:55:10

标签: svn exception hudson hudson-plugins

我是Hudson的新用户。

我在公司网络中运行Hudson。我的项目的源代码位于其他IDC的存储库中。存储库本身不允许公共连接,因此我们为Hudson创建了一个可以连接到存储库的从节点机器。当我创建Hudson项目时,我使用的存储库URL仅适用于从属节点。

轮询SCM可以连接,源代码更新似乎也没问题。但SVN插件在更新完成后立即引发异常。这是日志。

Started by user xster
Building remotely on XXXBuilder
Updating https://myprivaterepository/myproject/trunk
U         projectsource1
U         projectsource2
At revision 10498
hudson.util.IOException2: revision check failed on https://myprivaterepository/myproject/trunk
 at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:157)
 at hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:99)
 at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:504)
 at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:621)
 at hudson.model.AbstractProject.checkout(AbstractProject.java:1119)
 at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
 at hudson.model.Run.run(Run.java:1324)
 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
 at hudson.model.ResourceController.execute(ResourceController.java:88)
 at hudson.model.Executor.run(Executor.java:139)
Caused by: org.tmatesoft.svn.core.SVNException: svn: unknown host
svn: OPTIONS request failed on '/myproject/trunk'
 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:103)
 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:87)
 at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:616)
 at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:273)
 at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:261)
 at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516)
 at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98)
 at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1001)
 at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:178)
 at org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVNBasicClient.java:482)
 at org.tmatesoft.svn.core.wc.SVNBasicClient.getLocations(SVNBasicClient.java:851)
 at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:534)
 at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:1016)
 at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:891)
 at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:823)
 at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:145)
 ... 10 more
Caused by: java.net.UnknownHostException: myprivaterepository
 at java.net.InetAddress.getAllByName0(InetAddress.java:1201)
 at java.net.InetAddress.getAllByName(InetAddress.java:1128)
 at java.net.InetAddress.getAllByName(InetAddress.java:1064)
 at java.net.InetAddress.getByName(InetAddress.java:1014)
 at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createAddres(SVNSocketFactory.java:132)
 at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createSSLSocket(SVNSocketFactory.java:67)
 at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.connect(HTTPConnection.java:183)
 at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:323)
 ... 23 more
[WARNINGS] Skipping publisher since build result is FAILURE
Finished: FAILURE

如果我将主机名更改为ip,我收到此消息

hudson.util.IOException2: revision check failed on https://111.111.111.111/myproject/trunk
 at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:157)
 at hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:99)
 at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:504)
 at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:621)
 at hudson.model.AbstractProject.checkout(AbstractProject.java:1119)
 at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
 at hudson.model.Run.run(Run.java:1324)
 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
 at hudson.model.ResourceController.execute(ResourceController.java:88)
 at hudson.model.Executor.run(Executor.java:139)
Caused by: org.tmatesoft.svn.core.SVNException: svn: timed out waiting for server
svn: OPTIONS request failed on '/myproject/trunk'
 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:103)
 at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:87)
 at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:616)
 at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:273)
 at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:261)
 at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516)
 at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98)
 at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1001)
 at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:178)
 at org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVNBasicClient.java:482)
 at org.tmatesoft.svn.core.wc.SVNBasicClient.getLocations(SVNBasicClient.java:851)
 at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:534)
 at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:1016)
 at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:891)
 at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:823)
 at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:145)
 ... 10 more
Caused by: java.net.SocketTimeoutException: connect timed out
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
 at java.net.Socket.connect(Socket.java:546)
 at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:579)
 at org.tmatesoft.svn.core.internal.util.SVNSocketConnection.run(SVNSocketConnection.java:57)
 at java.lang.Thread.run(Thread.java:636)
[WARNINGS] Skipping publisher since build result is FAILURE
Finished: FAILURE

有什么想法解决问题吗?还是绕过?

1 个答案:

答案 0 :(得分:0)

我们刚刚在最近几天遇到了这样的问题并得到了解决方案:

最近在Jenkins上安装了XUnit插件,只有当我们的XP奴隶在触发构建时发生异常(修订检查失败)并开始SCM更改时才开始表现......

一旦XUnit被禁用,问题就会消失。

===

Jenkins服务器:v1.432

XUnit插件:v1.2.3