Jenkins - git使用Git插件请求登录凭据

问题描述 投票:1回答:1

我有几个乔布斯从bitbucket中提取代码并在jenkins中构建它。我正在使用Git插件来指定存储库URL + git凭据。

即使我在每个作业配置中设置凭据,每次推送到bitbucket(触发jenkins作业)时,Mac都会要求“git-credential-osxkeychain想要用户”登录“keychain”。如果我输入密码,作业将会运行,并且不会再问几个小时。

我想将它永久化,以便不再提示消息。

有什么建议?谢谢。

jenkins keychain devops
1个回答
0
投票

首先,只有在使用https URL时才会发生这种情况,这是git credential helper的一部分。 使用SSH URL完全绕过它。

如果是实际的错误消息

git-credential-osxkeychain wants to use your confidential information stored in "xxx" in your keychain.

查看“unable to click always allow on git-credential-osxkeychain popup”:删除bitbucket条目,并执行git ls-remote / url / bitbucket / repo以强制凭证助手再次询问这些凭据:输入它们,然后再次尝试Jenkins作业。

© www.soinside.com 2019 - 2024. All rights reserved.