This question is in reference to Atlassian Documentation: Checking out code
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)'
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.
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in talking to 20 people planning t...
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!
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