【发布时间】:2017-09-30 12:15:15
【问题描述】:
我的 Github 帐户启用了两因素授权 (2fa)。我想将 Jenkins 与我的一些私人存储库集成,但我无法授权它们,因为我启用了 2fa。请注意,这是一个多分支管道项目。
【问题讨论】:
标签: github jenkins two-factor-authentication
我的 Github 帐户启用了两因素授权 (2fa)。我想将 Jenkins 与我的一些私人存储库集成,但我无法授权它们,因为我启用了 2fa。请注意,这是一个多分支管道项目。
【问题讨论】:
标签: github jenkins two-factor-authentication
谁会想到点击帮助按钮?
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"
即在为您的 Jenkins 凭证使用用户名/密码时,使用 Github personal access token 作为您的密码。
【讨论】:
space。确保您没有无意中选择空格!