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

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

Bitbucket stopped respoding to jenkins request Edited

Angel I'm New Here Jul 06, 2020

Hello everybody.. I am currently making a Jenknis server and I am having trouble connecting to bitbucket. As i'm developing a jenkinsfile i made multiple commits that triggered a hook in Bitbucket and jenkins was able to download the source files and run the job.. due to some additional steps i had to play with credentials. So this is the problem.

When I try to connect to a bitbucket repo in order to download the Jenkinsfile(from the configuration window of the Jenkins job) i could no longer establish connection with the same credentials i used to before. the error is this(from jenkins job 'pipeline script from SCM' field):

Failed to connect to repository : Command "git ls-remote -h -- HEAD" returned status code 128:
stderr: fatal: Authentication failed for '

And i can still successfully login to bitbucket with the same credentials.. when the job is triggered by the web hook(bitbucket ----> Jenkins: HTTP response 200 .. alll good) but when jenkins try to checkout the Jenkinsfile and project, i see no information regarding the commit message and the job fails with the following error: 

ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --tags --force --progress -- +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stderr: fatal: Authentication failed for ''

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(
	at hudson.plugins.git.GitSCM.retrieveChanges(
	at hudson.plugins.git.GitSCM.checkout(
	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(
	at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(
	at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(
	at hudson.model.ResourceController.execute(
ERROR: Error cloning remote repo 'origin'
ERROR: Maximum checkout retry attempts reached, aborting
Finished: FAILURE

 And this used to work before... i wonder if there is some security reasons for the bitbucket to deny my access with a valid credentials


0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,849 views 0 7
Read article

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