Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

3 votes
Answer 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 Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

684 views 1 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you