由于SVNAuthenticationException,Hudson构建失败

时间:2012-08-27 11:16:04

标签: java svn build continuous-integration hudson

尝试使用Hudson构建项目时出现意外错误。我有一个有效的帐户,我可以通过该帐户结账到安装了Hudson的机器。我已将Hudson UI的身份验证参数更新为此帐户。

还有其他人遇到过这个吗?

hudson.util.IOException2: revision check failed on https://SVN Location
        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:1095)
        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:1280)
        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.SVNAuthenticationException: svn: OPTIONS of '/SVN Location': 403 Forbidden (https://SVN)
        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:610)
        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

2 个答案:

答案 0 :(得分:1)

我有这个问题。在花了一天时间研究ssl和http交互后,我发现它实际上是一个身份验证问题。

在jenkins v1.534中

中的(加密)凭据
/opt/jenkins/jobs/JOBNAME/subversion.credentials

/opt/jenkins/hudson.scm.SubversionSCM.xml

过时且不同步。为了使诊断更加困难,他们被缓存,并在每次工作时都被覆盖。因此,每次更改这些文件时,我都必须重新启动jenkins服务。

答案 1 :(得分:0)

您是否使用了正确的SVN网址?当大小写不正确时,这是一个常见错误。也许URL不是SVN_Location而是Svn_location