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.
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
helper = store
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?
Hello all! It has been 20 years since the agile manifesto was introduced, and closer to 40 years since software development began moving away from a waterfall-type approach. While many teams have ...
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