如何在Jenkins中设置SVN凭据? [英] How to set up SVN credentials in Jenkins?

查看:2505
本文介绍了如何在Jenkins中设置SVN凭据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法设置Jenkins在执行SVN提交时使用的凭据?我找不到办法。

Is there a way to set up credentials that will be used by Jenkins when it performs SVN commit? I could't find a way to do so.

如果我在我的机器上运行Jenkins服务器,它安装了SVN客户端并且我的凭据被缓存,似乎工作正常,但如果我尝试运行Jenkins服务器另一台机器,那么我会收到一个错误。

错误:无法标记
org.tmatesoft.svn.core.SVNCancelException:svn:没有凭据要尝试。身份验证失败

If I run Jenkins server on my machine, which has SVN client installed and my credentials are cached, it seems to work fine, but if I try to run Jenkins server on another machine, then I get an error.
ERROR: Failed to tag org.tmatesoft.svn.core.SVNCancelException: svn: No credential to try. Authentication failed

推荐答案

如果您转到Jenkins请求存储库的作业配置窗口,如果你等待一秒钟后你放入repo它试图连接,如果它无法连接它提示您与存储库位置下面的红色文本[如下所示];单击提供的链接,您可以提供密钥和任何其他您想要验证的方式。然后它会尝试连接,如果它的成功你的构建应连接好。

If you go to the job configuration window where Jenkins asks for the repositories; if you wait a second after you put in the repo it tries to connect, if its unable to connect it prompts you with red text under the repository location[shown below]; click the provided link you are able to provide a key and any other way you would like to authenticate. It will then try to connect if it's successful your build should connect fine.

url为其他机器设置身份验证将在这里通过jenkins如果你不能得到红色提示。

The url to setup authentication for the other machine would be here through jenkins if you can't get red prompt to come up.

这篇关于如何在Jenkins中设置SVN凭据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆