到目前为止,我们在 Jenkins 设置中使用的是带有用户名和密码凭据的 GitHub 插件。
但是,在 2021 年 8 月 13 日之后,此方法停止工作并引发此错误:
stderr: remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/了解更多信息。
根据如何在 Jenkins 中使用 Github 个人访问令牌中提供的答案
我将网址修改为:
https://<access token>@github.com/<userName>/<organization>/<repository>.git
但它不起作用。
我这里缺少任何步骤吗?