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

Error cloning remote repo 'origin'

Dear Team,


We are using Jenkins for our CI/CD process and we are using bitbucket as a code repository.

For few days our most of the jobs are getting failed due to the below error.


:42:24  ERROR: Error cloning remote repo 'origin'
15:42:24  hudson.plugins.git.GitException: Command "git fetch --tags --progress -- +refs/heads/*:refs/remotes/origin/*" returned status code 128:
15:42:24  stdout: 
15:42:24  stderr: fatal: The remote end hung up unexpectedly
15:42:24  fatal: protocol error: bad pack header
15:42:24  	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(
15:42:24  	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(
15:42:24  	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(
15:42:24  	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(
15:42:24  	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(


Could you please help us to solve this issue ASAP?

Our repo size is also less. 



1 answer

I also checked the below link.


but, I have a question here, In my job, we are creating a new node each time and the fresh clone will happen. So In this case where I need to set this value?

Suggest an answer

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

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

123 views 2 4
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