Configure DockerHub and GitHub access tokens inside Jenkins
Last updated
Last updated
To add DockerHub and GitHub credentials in Jenkins, go to Manage Jenkins > Credentials > System > Global Credentials and add the below credentials:
For DockerHub credentials, set Kind as Username with password, provide the DockerHub username and password and set the ID as "docker-cred".
For GitHub access token, go to the GitHub account and create a personal access token with all the permissions. Inside Jenkins, set the Kind as Secret Text and paste the token with the ID as "github"
Restart the Jenkins after setting up the plugins and the credentials