Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Not able to connect with jenkins using bitbucket repo url

Rajaguru Seetharaman April 13, 2023

Failed to connect to repository : Command "git ls-remote -h -- https://****************/repo-name.git HEAD" returned status code 128:
stderr: remote: Login failed due to incorrect login credentials or method.
remote: If you are unsure of which login details or login method to use, visit:
fatal: Authentication failed for ''


When try to connect bitbucket url with jenkins getting this error 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 17, 2023

Hi @Rajaguru Seetharaman,

What kind of authentication are you using? Are you using the credentials of a Bitbucket user?

If so, please keep in mind that we have deprecated the use of account passwords for Git operations via HTTPS. In case you are using username+password, you will need to generate an app password and use that instead of a password (in combination with the account's username):

Please make sure that the account you are using for authentication has access to this specific repo.

Feel free to let me know how it goes or if you use a different method of authentication.

Just a heads up, I removed the workspace-id and repo name from the URLs in your post to protect your privacy.

Kind regards,

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events