Jenkins PAT Credentials - johnttaylor/epc GitHub Wiki
Create a Personal Access Token (PAT) in GitHub
-
Login into the GitHub account
-
Go to
Settings
under the account -
Select
Developer Settings
-
Select
Token (classic)
-
Select
Generate new token->Generate new token (classic)
-
Create the token. You will be required to select an expiration time for the new PAT. For the Jenkins Server -
no-expiration
was selected. Review the list to below to for what scope the PAT needs. The bolded items are the scope selections for the Jenkins server.admin:repo_hook
- For managing hooks at GitHub Repositories level including for Multibranch Pipelineadmin:org_hook
- For managing hooks at GitHub Organizations level for GitHub Organization Foldersrepo
- to see private repos. Please note that this is a parent scope, allowing full control of private repositories that includes:repo:status
- to manipulate commit statusesrepo:repo_deployment
- to manipulate deployment statusesrepo:public_repo
- to access to public repositoriesread:org
anduser:email
- recommended minimum for GitHub Authentication plugin scopes.
Create Jenkins Credential for the PAT Token
-
Select
Manage Jenkins
-
Select
Credentials
-
Click
System
-
Click
Global credentials (unrestricted)
-
Click
Add Credentials
-
Select
Secret Text
, provide aDescription
, enter the PAT Token into theSecret
field, and then press theCreate
button