Jenkins-git使用Git插件请求登录凭据 [英] Jenkins - git requests for login credentials using Git plugin

查看:671
本文介绍了Jenkins-git使用Git插件请求登录凭据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个乔布斯,它们从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.

有什么建议吗?谢谢.

推荐答案

首先,只有在您使用https URL作为

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屋!

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