Create
cancel
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://***********@bitbucket.org/*****/repo-name.git HEAD" returned status code 128:
stdout:
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:
remote: https://support.atlassian.com/bitbucket-cloud/docs/log-into-or-connect-to-bitbucket-cloud/
fatal: Authentication failed for 'https://bitbucket.org/workspace-id/repo-name.git/'

 

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,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events