Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins-Github/Git - "Error validating repository information. Credentials ok."

On Jenkins, While setting up Multibranch setup with "Github" on Jenkins, I get strange error as

Error validating repository information. Credentials ok.

However same credential works for "git" as "Add Source" category but fails for "github" if added as "Add Source". This is actual credential for github and I can login github portal, Not sure what is going on here. Any pointers. Thanks

like image 623
Krishna Avatar asked Jul 03 '26 18:07

Krishna


1 Answers

I faced the same issue. This worked for me : create a Personal Access Token (using the steps described here ), and use your PAT as password in the jenkins credentials branch source. And the github username account (the account you create the PAT with) as username in jenkins.

like image 68
Ridge Avatar answered Jul 05 '26 08:07

Ridge



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!