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

Accepted Answer
1 vote

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 Sign up to answer
Community showcase
Published 10 hours ago in Jira Ops

Jira Ops Early Access Program Update #2: Let’s talk severity levels

Welcome to your weekly Jira Ops Early access program update, where we’re sharing news and updates on Jira Ops' progress as we work toward our 1.0 release. If you ever want to drop us feedback or idea...

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