Jenkins Beginner Tutorial 9 - How to add GitHub Credentials

FREE Tutorials –
GitHub –
UPDATE**** – While connecting/pushing to github from any external platform/tool, you will NOW need to provide ACCESS TOKEN in place of password
To generate Access Token
1. Login to your GitHub account
2. Verify your email address, if it hasn’t been verified yet.
3. In the upper-right corner of any page, click your profile photo, then click Settings.
4. In the left sidebar, click Developer settings.
5. In the left sidebar, click Personal access tokens.
6. Click Generate new token.
7. Give your token a descriptive name.
8. To give your token an expiration, select the Expiration drop-down menu, then click a default or use the calendar picker
9. Select the scopes, or permissions, you’d like to grant this token. To use your token to access repositories from the command line, select repo.
10. Click Generate token

Training by Raghav at your venue –
Training schedule –

———— UI TESTING ————
Selenium Beginners –
Selenium Java Framework from Scratch –
Selenium Python –
Selenium Tips –
Selenium Builder –
Katalon Studio –
Robot Framework with RIDE-
Robot Framework with Eclipse –
Protractor –
TestProject –

———— API TESTING ————
Web Services (API) –
SoapUI –
Postman –
General –
Katalon Studio API Testing –

Appium –
Mobile Playlist –

———— CI | CD | DEVOPS ————
Jenkins Beginner –
Jenkins Tips & Trick –
Docker –
Kubernetes –

Git & GitHub –
GitLab –

JMeter Beginner –
JMeter Intermediate –
JMeter Advanced –
JMeter Tips & Tricks –
Performance Testing –

Java Beginners –
Java Tips & Tricks –

———— IDE ————
Visual Studio Code –

———— BUILD TOOLS ————
Maven –
Gradle –

———— OTHERS ————
Misc –
Tools & Tips –
QnA Friday-
Sunday Special –

Ask Raghav –
Interviews –
All Playlists –

Keep Learning,

———– Connect with Raghav ————
Website –
LifeCharger –
Udemy Courses –
Facebook –
Twitter –
Youtube –

Like, Subscribe & Share
You can support my mission for education by sharing this knowledge and helping as many people as you can

If you like to contribute to my mission –


38 thoughts on “Jenkins Beginner Tutorial 9 – How to add GitHub Credentials”
  1. Hi Raghav, Thank you for this awesome video. only one question: when any changes in the repo then genkins trigger this changes automatically?

  2. stderr: remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

  3. If the github repo is private then only we need to add github credentials. If it is public repo, no need to add credentials,is my understanding correct?

  4. HY! Sir i face a problem when i create folder and add the location of that folder i have created into the custom workspace and when i build everything is running fine but nothing could be added into that folder it is empty

  5. Hi Raghav. Can we add My application related data base(SqlServer) credentials in the same way. Thanks in advance.

  6. Great video!
    But since August 2021 you'll need to use an SSH private key to access your private repositories from Jenkins.
    Username/password didn't work for me anymore.

  7. You did not clone a private repository …U just add public repo that's why Jenkins didn't gave any error while cloning repo……Plz make video on private repo cloning in Jenkins

  8. Hi Raghav. Whenever I am storing a password which is having a special character(ex:avc$123) in the Jenkin credential plugin and running the job, the job is getting failed with "123 is not a command in .sh file". How to overcome this issue?

  9. I am facing the below issue after following your video any idea please –
    Failed to connect to repository : Command "git ls-remote -h git@github.****.**:nroy/test.git HEAD" returned status code 128:


    stderr: Permission denied (publickey).

    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights

    and the repository exists.

  10. HI Raghav ,credentials plugin is already installed but credentials option is not shown in the left bar, how to navigate to credentials? please help . I am using window OS.

  11. credentials plugin is already installed but credentials option is not shown in the left bar, how to navigate to credentials?

  12. Hi Raghav, trying to add the certificate in Jenkins credentials store and retrieve it through pipeline job.. getting keystore not initialized error.. Help on this will be appreciated.. Thanks

  13. Hi Raghav,
    I don't see 'Cloning the remote Github repository' when I run a job at Jenkins. I see this : The recommended git tool is: NONE. And then, this error message : No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
    Any idea what's going on here? I have changed all Build path, JRE System Library and Preferences in Eclipse to 'jdk1.8'. But Jenkins can't find Maven compiler.

  14. Awesome i was struggle a lot for integrating the github to jenkins your videos is more usefull ..Thankyou very for session nicely

  15. getting below error, Plz help on this.

    Build step 'Execute shell' marked build as failure

    Finished: FAILURE

  16. Thanks, I successfully integrated with git. But my doubt is that I didn't give any login credential of GitHub in Jenkins. How Jenkins can access my git account without giving login credential? Is it an expected behaviour or security violation?

  17. Hi ,
    Can you please explain, When Jenkins detects change in code on GitHub, then how it will Automatically build the code(What are the steps to run the build and where to write those steps in Jenkins) and will perform initial Testing ?

  18. I am watching your Jenkins tutorial from 2016 then the next vid that came after it was this video which is pretty new. I must say your way of talking has improved by so much! Anyways thank you so much for the tutorials!

  19. Hi Raghav, I am facing issue "no revision build found" . Please tell me how to solve this issue

  20. Hi Raghav, thank you for sharing this video!
    Does anyone know if I update my Github password, should I update this Jenkins credentials password as well? Is there any way to avoid updating Jenkins credentials password?

  21. Hi raghav. I get a 443 time out error when running my jenkins job which is confugured to connect to a public repository in github
    I have a proxy setting and i have run the git config –global http.proxy myproxyname:port
    After this change. I am able to run git push command from windows but my Jenkins job still fails with 443 error. My github has credentials and i have added the same credentials to jenkins job.
    Your help would be appreciated

Leave a Reply

Your email address will not be published.

Captcha loading...