为 Github CI 配置 Jenkins w/ 2FA
Configure Jenkins For Github CI w/ 2FA
我的 Github 帐户启用了双重授权 (2fa)。我想将 Jenkins 与我的一些私有存储库集成,但我无法授权它们,因为我启用了 2fa。请注意,这是一个多分支管道项目。
关于如何配置 Jenkins 以在不创建未启用 2fa 的虚拟帐户的情况下连接私人存储库的任何想法?
谁会想到点击帮助按钮?
Credentials used to scan branches and pull requests, check out sources and mark commit statuses.
If none is given, only the public repositories will be scanned, and commit status will not be set on GitHub.
If your organization contains private repositories, then you need to specify a credential from an user who have access to those repositories.
This is done by creating a "username with password" credential where the password is GitHub personal access tokens. The necessary scope is "repo"
即在使用 username/password 作为您的 Jenkins 凭据时使用 Github personal access token 作为您的密码。
我的 Github 帐户启用了双重授权 (2fa)。我想将 Jenkins 与我的一些私有存储库集成,但我无法授权它们,因为我启用了 2fa。请注意,这是一个多分支管道项目。
关于如何配置 Jenkins 以在不创建未启用 2fa 的虚拟帐户的情况下连接私人存储库的任何想法?
谁会想到点击帮助按钮?
Credentials used to scan branches and pull requests, check out sources and mark commit statuses.
If none is given, only the public repositories will be scanned, and commit status will not be set on GitHub.
If your organization contains private repositories, then you need to specify a credential from an user who have access to those repositories.
This is done by creating a "username with password" credential where the password is GitHub personal access tokens. The necessary scope is "repo"
即在使用 username/password 作为您的 Jenkins 凭据时使用 Github personal access token 作为您的密码。