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: )
javaerror.png
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 user.name "Your Name"
git config --global user.email "you@example.com"
I've since then removed these values but it's still not working.

 


Thanks in advance,
eyang

2 answers

1 accepted

4 votes
Accepted answer

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 git@git.okapi-np.in.telstra.com.au:BIOS/topology-service-okapi.git failed with code 128. Working directory was [.]., stderr: [ssh: connect to host git.okapi-np.in.telstra.com.au 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.

 

Amod

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 Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

807 views 3 9
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you