Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unable to authenticate with private Github repo - fails build every time #103
The Github client is prompting for username when trying to clone private repo. It fails with:
I have provided client access key and authorized the application to have access to private repos through OAuth.
Jenkins ver. 1.595
May be related to #102
I got this to work by creating a docker image that had a credential stored on the disk at ~/.git-credential. I also set
Replace with an Github OAuth Token. See https://help.github.com/articles/git-automation-with-oauth-tokens/
This could also be fixed if the git clone command contained the token:password like this:
However, it would require a code change to make this happen by default. You COULD change the Github project url to include the credentials for each project but that's cumbersome.