Bitbucket 应用程序密码强制执行:jenkins 凭据已损坏
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
凭证中的用户之前是 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.