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://54.175.97.69:8080.
  2. Click on credentials in the left-hand side menu, then click on System just below, and then click on 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 username (or your GitHub organization) as a username.
  7. Use the token generated in the last section as your password.
  8. The Id can be something like GitHub.
  9. Optionally, give a Description and click OK.

The last step of our initialization process consists of creating the Jenkins job.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset