【发布时间】:2011-11-15 06:47:43
【问题描述】:
我尝试在 Hudson 中设置参数化构建。这是一个字符串参数,将在我手动触发构建时设置。这是示例存储库网址。svn://xxx/java/common/tags/${revision}
当我尝试使用 $revision=1.0.0.0 进行构建时遇到以下异常
error: failed to check out svn://xxx/java/common/tags/1.0.0.0
org.tmatesoft.svn.core.SVNCancelException: svn: No credential to try. Authentication failed
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancel(SVNErrorManager.java:37)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancel(SVNErrorManager.java:32)
at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getFirstAuthentication(DefaultSVNAuthenticationManager.java:219)
at org.tmatesoft.svn.core.internal.io.svn.sasl.SVNSaslAuthenticator.createSaslClient(SVNSaslAuthenticator.java:304)
at org.tmatesoft.svn.core.internal.io.svn.sasl.SVNSaslAuthenticator.authenticate(SVNSaslAuthenticator.java:91)
at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.authenticate(SVNConnection.java:173)
at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.authenticate(SVNRepositoryImpl.java:1265)
at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:1243)
at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getLatestRevision(SVNRepositoryImpl.java:168)
at org.tmatesoft.svn.core.wc.SVNBasicClient.getRevisionNumber(SVNBasicClient.java:482)
at org.tmatesoft.svn.core.wc.SVNBasicClient.getLocations(SVNBasicClient.java:873)
at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:534)
at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:901)
我已经为上面的存储库 url 设置了用户名/密码。由于 url 是动态生成的,因此 Subversion 插件似乎无法获取凭据。如果我将 URL 设置为静态 URL 并相应地设置用户名/密码,我就可以签出该项目。任何帮助将不胜感激。谢谢。
哈德逊版本:2.1.0
颠覆插件版本:2.0.1
【问题讨论】:
-
您能解释一下参数化构建的含义吗?当我做一个新的构建工作并选择复选框
This build is parameterized时,我只有几个选项。你在那里用过哪一个?它是一个字符串参数,然后在您的 URL 中使用到 Subversion 吗?请将此信息添加到问题中。 -
是的,它是一个字符串参数,在我的 URL 中用于颠覆。
标签: svn continuous-integration hudson hudson-plugins