Why does my git checkout not work ?

I am running bamboo elastic solution and this is my log when doing a code checkout from my Git bitbucket account:
simple	23-Dec-2015 10:03:31	Starting task 'Checkout' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
simple	23-Dec-2015 10:03:31	Build always requires a clean checkout
simple	23-Dec-2015 10:03:31	Cleaning build directory 'C:\build\CON-TEST-JOB1'
simple	23-Dec-2015 10:03:31	Updating source code to revision: 4d35c967b3aecf2f6130ed21cb503b7b8069fb87
simple	23-Dec-2015 10:03:31	C:\cygwin\bin\git.exe version
simple	23-Dec-2015 10:03:31	Updating source code to revision: 4d35c967b3aecf2f6130ed21cb503b7b8069fb87
simple	23-Dec-2015 10:03:31	C:\cygwin\bin\git.exe version
simple	23-Dec-2015 10:03:32	Updating source code to revision: 4d35c967b3aecf2f6130ed21cb503b7b8069fb87
simple	23-Dec-2015 10:03:32	C:\cygwin\bin\git.exe version
simple	23-Dec-2015 10:03:32	Task was canceled - 'Checkout(4)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout.

not sure why its running "git version" for ?

if I do a git clone via a script it works fine and its downloaded 

 

3 answers

1 accepted

1 vote

Hi James, 

I found the answer below which looks very similar to your case. This looks to be related to a different version of Git between Bamboo Agent and Server. Please have a look:

https://answers.atlassian.com/questions/32116318/setting-up-for-bitbucket

 

Regards, 
Renato Rudnicki 

I am assuming that's Windows, I am not familiar with the elastic thing. Are you sure the cygwin git works in bamboo? I have been always using Git for Windows.

Firstly thanks for taking the time to respond.

Yes its windows, as for cygwin ... all the AWS elastic images provided by Atlassian has cygwin git installed so I assume it would work. The only versions that dont are old images running on 2008 servers but considering this is using their default image and their default run job then I am guessing that would work.

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,321 views 0 5
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