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

查看:80
本文介绍了如何在 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.

如果我在安装了 SVN 客户端并缓存了我的凭据的机器上运行 Jenkins 服务器,它似乎工作正常,但如果我尝试在另一台机器上运行 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.

如果您无法获得红色提示,则通过 jenkins 为另一台机器设置身份验证的 url 将在此处显示.

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天全站免登陆