Jenkins + SVN:svn:E175002:OPTIONS

时间:2016-11-15 03:10:43

标签: svn jenkins collabnet

我无法使用Jenkins运行构建,并且在控制台上我可以找到以下错误。但我已经验证了存储库根目录以及子浏览器通过浏览器的访问权限,这很好。

[EnvInject] - Loading node environment variables.
Building remotely on xxx.xxx.xxx.xxx in workspace /path/project
Updating http://<IP>/path/to/repo at revision  
U         rpms/src/main/
At revision 6374
hudson.util.IOException2: revision check failed on http://<IP>/path/to/repo/subfolders
    at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:178)
    at hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:113)
    at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:649)
    at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:810)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1382)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
    at hudson.model.Run.execute(Run.java:1593)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:247)
Caused by: org.tmatesoft.svn.core.SVNException: svn: E175002: OPTIONS /path/to/repo/subfolders failed
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:379)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:364)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:352)
    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:708)
    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:628)
    at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:103)
    at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1018)
    at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:180)
    at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.getRevisionNumber(SvnNgRepositoryAccess.java:118)
    at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.getLocations(SvnRepositoryAccess.java:148)
    at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepositoryFor(SvnNgRepositoryAccess.java:45)
    at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:160)
    at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:35)
    at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:20)
    at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1235)
    at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:291)
    at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:967)
    at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:872)
    at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:166)
    ... 11 more
Caused by: svn: E175002: OPTIONS path/to/repo/subfolders failed
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:208)
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:154)
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:97)
    ... 30 more
Caused by: org.tmatesoft.svn.core.SVNAuthenticationException: svn: E170001: OPTIONS request failed on '/path/to/repo/subfolders'
svn: E170001: OPTIONS of '/path/to/repo/subfolders': 403 Forbidden (http://<IP>/)
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:62)
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:748)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:373)
    ... 29 more
Caused by: svn: E170001: OPTIONS of '/path/to/repo/subfolders': 403 Forbidden (http://<IP>/)
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:208)
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:189)
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:141)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.createDefaultErrorMessage(HTTPRequest.java:452)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:189)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:460)
    ... 30 more
Notifying upstream projects of job completion
Finished: FAILURE

我们在CentOS6操作系统中使用CollabSVN。

请帮忙。

2 个答案:

答案 0 :(得分:1)

stacktrace肯定会显示一个身份验证异常,所以我怀疑你在Jenkins上的SVN配置不正确:

Caused by: org.tmatesoft.svn.core.SVNAuthenticationException: svn: (...)

如果您控制远程仓库(您的服务器?),也许您可​​以在该端启用详细日志记录以查看正在进行的操作?或者至少看看日志。

答案 1 :(得分:-1)

当Jenkins无法与您的SVN存储库连接时,会发生此问题。 发生这种情况的一些可能原因是:

  1. 您连接到存储库的凭据无效。
  2. 存储库分支路径无效。
  3. SVN服务器已关闭。