Jenkins-git使用Git插件请求登录凭据 [英] Jenkins - git requests for login credentials using Git plugin
问题描述
我有几个乔布斯,它们从bitbucket中提取代码并将其构建在jenkins中. 我正在使用Git插件指定存储库URL + git凭据.
I have a couple of Jobs that pull code from bitbucket and build it in jenkins. I'm using Git plugin to specify the repository URL + the git credentials.
即使我在每个Job配置中设置了凭据,但是每次有一次推送到bitbucket(触发jenkins作业)时,Mac都要求"git-credential-osxkeychain想要使用"login"钥匙串". 如果输入密码,该作业将运行,并且将在几个小时后不再询问.
Even though I set the credentials in each Job configuration, each time there is a push to bitbucket(that triggers the jenkins job), Mac is asking for "git-credential-osxkeychain wants to user the "login" keychain". If I enter the password, the job will run and it will not ask again for a couple of hours.
我想将其设为永久性,以便不再提示该消息.
I would like to make it permanent so that message won't be prompted any more.
有什么建议吗?谢谢.
推荐答案
First, that only happens if you are using https URLs, as part of a git credential helper.
Using SSH URLs would bypass that entirely.
如果实际错误消息是
git-credential-osxkeychain wants to use your confidential information stored in "xxx" in your keychain.
检出"无法单击,始终允许git-credential-osxkeychain弹出窗口":删除bitbucket条目,然后进行git ls-remote/url/bitbucket/repo来强制凭证助手再次询问这些凭证:输入它们,然后然后再次尝试您的Jenkins作业.
Check out "unable to click always allow on git-credential-osxkeychain popup": delete the bitbucket entry, and do a git ls-remote /url/bitbucket/repo to force the credential helper to ask those credentials again: enter them, then try your Jenkins jobs again.
这篇关于Jenkins-git使用Git插件请求登录凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!