It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Adrian Wyssmann Dec 13, 2017

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

0 votes
Adrian Wyssmann Dec 14, 2017

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Off-topic

What podcasts are you listening to right now?

Like the title says: what podcasts are in your rotation right now? Here are some favorites I've been in to from the last few weeks. The Ringer NBA Show I've been diving deep into the NBA Playoffs...

800 views 16 9
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you