setting up for bitbucket

This question is in reference to Atlassian Documentation: Checking out code

Hi

I've been trying to set up a simple plan to checkout the source from git. I've tried using both github and Bitbucket cloud. I can load the correct repository when I create the task but when I run the task it doesnt seem to check out the asp.net solution. I check the server and no code was found

I get the following error.

command	10-Nov-2015 16:44:37	Request to stop 'ETG-STAG-JOB1-28' received from admin
simple	10-Nov-2015 16:44:37	Generating build results summary...
simple	10-Nov-2015 16:44:37	Saving build results to disk...
simple	10-Nov-2015 16:44:37	Logging substituted variables...
simple	10-Nov-2015 16:44:37	Indexing build results...
simple	10-Nov-2015 16:44:37	Finished building ETG-STAG-JOB1-28.
simple	10-Nov-2015 16:47:07	Build Expedia Travel Guides - Stage - Default Job #28 (ETG-STAG-JOB1-28) started building on agent Elastic Agent on i-4285a3fb
simple	10-Nov-2015 16:47:07	Elastic agent on instance i-4285a3fb
simple	10-Nov-2015 16:47:07	Build working directory is C:\build\ETG-STAG-JOB1
simple	10-Nov-2015 16:47:07	Executing build Expedia Travel Guides - Stage - Default Job #28 (ETG-STAG-JOB1-28)
simple	10-Nov-2015 16:47:07	Starting task 'Git checkout' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
simple	10-Nov-2015 16:47:07	Updating source code to revision: 717e6bdc386d8173a002bd63f7a8502bdd9fd68a
simple	10-Nov-2015 16:47:08	Updating source code to revision: 717e6bdc386d8173a002bd63f7a8502bdd9fd68a
simple	10-Nov-2015 16:47:08	Updating source code to revision: 717e6bdc386d8173a002bd63f7a8502bdd9fd68a
simple	10-Nov-2015 16:47:08	Task was canceled - 'Git checkout(2)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout.
error	10-Nov-2015 16:47:08	Failed to prepare the build 'Expedia Travel Guides - Stage - Default Job #28 (ETG-STAG-JOB1-28)'

 

2 answers

1 accepted

I had this same issue today and finally managed to resolve it.

I am using Bamboo cloud, Bitbucket cloud and build agent on EC2 to do the build.

In my case the cause was that the path to git.exe on the EC2 build agent was not the same path as defined in the "Capabilities" in Bamboo.  The build agent had git.exe placed on C:\opt\git-2.6.1\cmd, but the "Capabilities" in Bamboo stated c:\cygwin\bin.

To figure this out, I logged on to the build agent in EC2 and searched for git.exe.  There I found the correct path.  You can set the path in Bamboo in Elastic configuration->Instance configurations->Capabilities (for the agent you are using).  There, you will find the path of Git at the bottom and can Edit it.

Thank you so much! that solved it!

Suggest an answer

Log in or Join to answer
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,097 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot