Anuradha
Anuradha

Reputation: 21

Permission issue for git in jenkins

I am integrating jenkins and Git Lab

My git lab permission is set as Internal In Jenkins SCM sections i mentioned my git url with credential and added the crdential in configure section too But it throws error Failed to connect to repository : Command "/usr/bin/git ls-remote -h https://xxx.git HEAD" returned status code 128: stdout: stderr: remote: HTTP Basic: Access denied fatal: Authentication failed for 'https:xxx.git/' Please give me a resolution.I want the git permission to be internal

Upvotes: 0

Views: 7222

Answers (2)

Cristian Scheel
Cristian Scheel

Reputation: 878

Maybe is not the same but for me the Global API token "type" didn't work for me (same error as you) so for me work Create new credentials of type "username & password", in username put the Access token name of your credential in gitlab, and in password the token.

Upvotes: 1

user_9090
user_9090

Reputation: 1974

Please check Gitlab with Jenkins, you can follow the steps which are mentioned in the comment.

Upvotes: 3

Related Questions