Git Executable setup

Dan Vella January 24, 2013

So I was able to use the built in GitHub configuration that is provided by Bamboo to fetch my repos and complete builds. I am now looking to expand my use of Bamboo do to the Branching and work with submodules in my project. I added Git to my build server (linux) and added that configuration to my server capabilities (/usr/bin/git). When I go back to run my basic working plans now, I am getting the following:

com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote https://<username>:********@github.com/buildcom/<project>.git failed with code 139. Working directory was [.]., stderr: [])

Am I missing a setup somewhere that I need to do on the build server with Git?


2 answers

1 accepted

0 votes
Answer accepted
Dan Vella January 24, 2013

So what it turned out to be was our own configuration. I needed to upgrade the GIT on my server to 1.8 and build it correctly with curl options. Once we did a proper install with all the settings, we were able to get past this issue.

0 votes
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 24, 2013

That's weird - does it work if you execute that command manually?

Dan Vella January 24, 2013

No it does not:

-bash: !@github.com/buildcom/<project>.git: event not found

So I guess that is my root problem. Ideas? does a git ls-remote https://<username>:********@github.com/<repo>/<project>.git work for anyone else on linux?

PiotrA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 24, 2013

Could it be that you're having '!' chars in your password and the Bamboo doesn't properly escape them? http://serverfault.com/questions/208265/what-is-bash-event-not-found

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events