Adding the access token to the credentials in Jenkins

We can now add the token to Jenkins as follows:

  1. Open Jenkins, in my case http://18.208.183.35:8080.
  2. Click on Credentials in the menu on the left, then click on System just after it it, and then Global credentials.
  3. On the next screen, click on Add credentials.
  4. The credentials we are going to create are of the type Username with password.
  5. The scope should be global.
  6. Use your GitHub organization as a username.
  7. Use the token generated in the previous section as your password.
  8. The ID can be something like GitHub as shown in the following screenshot:

  1. You can also choose to give it a description ...

Get Effective DevOps with AWS - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.