Prerequisites
Jenkins Instance
A Jenkins instance will be required for this lab. If you don’t have one available to you, we would recommend going through the Local Development learning lab to deploy a local Jenkins instance through Docker.
Ability to Create GitHub Repositories
When creating your first set of pipeline libraries and externalizing the pipeline configuration from Jenkins you will need to be able to create GitHub repositories on github.com.
|
Theoretically, any git-based SCM provider (BitBucket, GitHub, GitLab, etc) should integrate and work as expected with JTE. For the purposes of simplifying this lab, we will be using GitHub. |
GitHub PAT in the Jenkins Credential Store
Create a GitHub Personal Access Token.
|
If you intend to create public repositories then your PAT is merely acting to authenticate to GitHub in order to avoid rate limiting, you do not need to grant any scopes to the PAT. If you will be creating private repositories, you’ll need to grant the repo scope to the PAT. |
Copy this token and store it in the Jenkins credential store.
-
From the Jenkins home page, click
Credentialsin the lefthand navigation menu -
Select the
globalcredential scope -
Select
Add Credentialin the lefthand navigation menu -
Enter your github username in the
Usernamefield -
Paste the Personal Access Token into the
Passwordfield -
Enter
githubinto theIDfield -
Enter
githubinto theDescriptionfield -
Click
OK
