Jenkins, git-plugin and Bitbucket under Windows: Authentication failed Edited

I have setup a private Bitbucket repo which can be accessed fine by the Jenkins Git-Plugin. When I switch the repo to require authentication Jenkins complains with

stderr: fatal: Authentication failed for 'https://bitbucket/scm/test/test.git'

I have provided credentials in the plugin which have enough permissions to access the repo. I also can test this successfully on the command line on the jenkins server. 

Repository Url in Jenkins: https://bitbucket/scm/test/test.git

If I add the credentials directly in the repository url, then the authentication works fine. 

https://testuser:pa$$@bitbucket/scm/test/test.git

I currently don't understand how credentials are passed in the jenkins plugin so maybe there is something wrong with the gitconfig? Here is mine

[credential]
    helper = store
[core]
    editor = nano.exe
    askpass = false

Any suggestion how to configure git and jenkins so that I can use user authentication (username and password) via https?

 

1 answer

It turned out that the user in jenkins was wrongly configured so assuming the username AND password are correctly set providing the url and selection of the correct credentials are fine

Repository Url in Jenkins: https://bitbucket/scm/test/test.git

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted yesterday in Off-topic

Miscellaneous Monday - CreatatronV3

You may remember, not so long ago, that together we invented the most evil of machines: The Destructo5000!  The effects of missing Durian rippled over nations. Complete chaos as goat chee...

110 views 4 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you