Jenkins Beginner Tutorial 9 – How to add GitHub Credentials

    12
    38



    FREE Tutorials – https://automationstepbystep.com/
    GitHub – https://github.com/Raghav-Pal/
    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 – [email protected]
    Training schedule – https://automationstepbystep.com/trainings-2/

    ———— UI TESTING ————
    Selenium Beginners – https://bit.ly/2MGRS8K
    Selenium Java Framework from Scratch – https://bit.ly/2N9xvR6
    Selenium Python – https://bit.ly/2oyMp5x
    Selenium Tips – https://bit.ly/2owxc50
    Selenium Builder – https://bit.ly/2MKNtlq
    Katalon Studio – https://bit.ly/2wARFdi
    Robot Framework with RIDE- https://bit.ly/2Px6Ue9
    Robot Framework with Eclipse – http://bit.ly/2N8DZxb
    Protractor – http://bit.ly/2KtqVkU
    TestProject – http://bit.ly/2DRNJYE

    ———— API TESTING ————
    Web Services (API) – https://bit.ly/2MGafL7
    SoapUI – https://bit.ly/2MGahmd
    Postman – https://bit.ly/2wz8LrW
    General – https://bit.ly/2PYdwmV
    Katalon Studio API Testing – https://bit.ly/2BwuCTN

    ———— MOBILE TESTING ————
    Appium – https://bit.ly/2ZHFSGX
    Mobile Playlist – https://bit.ly/2PxpeUv

    ———— CI | CD | DEVOPS ————
    Jenkins Beginner – https://bit.ly/2MIn8EC
    Jenkins Tips & Trick – https://bit.ly/2LRt6xC
    Docker – https://bit.ly/2MInnzx
    Kubernetes – http://bit.ly/2MJIlMK

    ———— VERSION CONTROL SYSTEM ————
    Git & GitHub – https://bit.ly/2Q1pagY
    GitLab – http://bit.ly/2kQPGyQ

    ———— PERFORMANCE TESTING ————
    JMeter Beginner – https://bit.ly/2oBbtIU
    JMeter Intermediate – https://bit.ly/2oziNVB
    JMeter Advanced – https://bit.ly/2Q22Y6a
    JMeter Tips & Tricks – https://bit.ly/2NOfWD2
    Performance Testing – https://bit.ly/2wEXbLS

    ———— PROGRAMMING ————
    Java Beginners – https://bit.ly/2PVUcXs
    Java Tips & Tricks – https://bit.ly/2CdcDnJ
    GROOVY – https://bit.ly/2FvWV5C
    JAVASCRIPT – http://bit.ly/2KJDZ8o
    PYTHON – http://bit.ly/2Z4iRye

    ———— IDE ————
    Visual Studio Code – https://bit.ly/2V15yvt

    ———— BUILD TOOLS ————
    Maven – https://bit.ly/2NJdDRS
    Gradle – http://bit.ly/30l3h1B

    ———— OTHERS ————
    Redis- https://bit.ly/2N9jyCG
    Misc – https://bit.ly/2Q2q5xQ
    Tools & Tips – https://bit.ly/2oBfwoR
    QnA Friday- https://bit.ly/2NgwGpw
    Sunday Special – https://bit.ly/2wB23BO

    Ask Raghav – https://bit.ly/2CoJGWf
    Interviews – https://bit.ly/2NIPPxk
    All Playlists – https://bit.ly/2LSiezA

    Keep Learning,
    Raghav

    ———– Connect with Raghav ————
    Website – https://automationstepbystep.com/
    LifeCharger – http://lifecharger.org/
    Udemy Courses – https://www.udemy.com/user/raghav-pal-3/
    Facebook – https://www.facebook.com/automationstepbystep
    Twitter – https://twitter.com/automationsbs
    Youtube – http://youtube.com/automationstepbystep

    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 – paypal.me/automationstepbystep

    source

    Previous articleCICD for Automation Testers – 8, Install Git and Create account on GitHub
    Next articleKubernetes : l'essentiel en 7 minutes

    38 COMMENTS

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

      stdout:

      stderr: Permission denied (publickey).

      fatal: Could not read from remote repository.

      Please make sure you have the correct access rights

      and the repository exists.

    2. 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.

    3. 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