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

Build error with com.atlassian.bamboo.repository.RepositoryException : java.lang.RuntimeException:

Hi, I'm not sure what I did but I am now getting an error when trying to run any of my builds.  Previously it worked until I ran some command line with Git to try to commit files back into BitBucket.  Now all plans do not build.  They fail with 

System Error Details

Build OLR - OLR-Dev 47 : Errors getting changes for OLR-OLM-47 
(com.atlassian.bamboo.repository.RepositoryException : java.lang.RuntimeException: com.atlassian.bamboo.plugins.git.GitCommandException: command system.git.executable version failed with code -1. Working directory was [\]., stderr: )
I'm attaching screenshots and text output.  Any idea as to why this would be failing?  I'm able to setup repositories with the correct credentials.

I think the only think I did that would have changed git is by setting


git config --global "Your Name"
git config --global ""
I've since then removed these values but it's still not working.


Thanks in advance,

2 answers

1 accepted

4 votes
Answer accepted
rsperafico Atlassian Team May 08, 2015

Hello Elee,

Thank you for your question.

Could you please make sure you have set up Git as a capability to the Bamboo agent where you are attempting to run the build OLR-OLM, please:

  • "Bamboo administration >> Build resources >> Server Capabilities"
  • "Bamboo administration >> Build resources >> Agents >> <your agent> >> Capabilities" tab

Please, refer to Defining a new version control capability documentation for further information.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Support

Hi Rafael,

I have similar issue getting while build running on bamboo.

Build BIOS - api0479-network-topology-api-v1 29 : Errors getting changes for BIOS-API0479-29 
(com.atlassian.bamboo.repository.RepositoryException : java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote failed with code 128. Working directory was [.]., stderr: [ssh: connect to host port 22: Connection refused, fatal: Theremote end hung up unexpectedly])


I have only access to link repositories under Bamboo Administrator. I am not able to see any other option under this.

Need your support to resolve the same.



Thanks for the quick response!  Yes you are correct.  I entered the path for git.exe and it's now building.

Suggest an answer

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

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

65 views 0 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