Bitbucket 应用程序密码强制执行:jenkins 凭据已损坏

发布于 2025-01-17 00:37:44 字数 866 浏览 0 评论 0原文

Atlassian Bitbucket 仅使用应用程序密码的新强制措施已破坏了之前有效的 jenkins bitbucket 用户凭证,即使在同一用户/凭证的凭证中更新了新的应用程序密码也是如此。此错误显示在 jenkins 中:

> Failed to connect to repository : Command "git ls-remote -h --
> https://bitbucket.org/<project>/<repo>.git HEAD" returned status code
> 128: stdout: stderr: remote: Bitbucket Cloud recently stopped
> supporting account passwords for Git authentication. remote: See our
> community post for more details:
> https://atlassian.community/t5/x/x/ba-p/1948231 remote: App passwords
> are recommended for most use cases and can be created in your Personal
> settings: remote:
> https://bitbucket.org/account/settings/app-passwords/ fatal:
> Authentication failed for
> 'https://bitbucket.org/<project>/<repo>.git/'

我还尝试使用新的应用程序密码删除并重新创建凭据,但仍然发生此错误。如何让凭证再次生效?

A previously-working jenkins bitbucket user credential has been broken by Atlassian Bitbucket's new enforcement of using app passwords only, even when the new app password is updated in the credential for the same user/credential. This error is displayed in jenkins:

> Failed to connect to repository : Command "git ls-remote -h --
> https://bitbucket.org/<project>/<repo>.git HEAD" returned status code
> 128: stdout: stderr: remote: Bitbucket Cloud recently stopped
> supporting account passwords for Git authentication. remote: See our
> community post for more details:
> https://atlassian.community/t5/x/x/ba-p/1948231 remote: App passwords
> are recommended for most use cases and can be created in your Personal
> settings: remote:
> https://bitbucket.org/account/settings/app-passwords/ fatal:
> Authentication failed for
> 'https://bitbucket.org/<project>/<repo>.git/'

I also tried deleting and recreating the credential with the new app password and this error still happens. How to get the credential working again?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

善良天后 2025-01-24 00:37:45

凭证中的用户之前是 Bitbucket 帐户的电子邮件地址。用户需要更改为帐户的实际用户名,如 BitBucket Web 界面 >用户头像>个人设置>账户设置> Bitbucket配置文件设置部分>用户名。

输入图片此处描述

The user in the credential previously was the email address for the Bitbucket account. The user needed to be changed to the actual username for the account as found in BitBucket web interface > User Avatar > Personal Settings > Account Settings > Bitbucket profile settings section > Username.

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文