Full clone or just revisions?

CraigT March 27, 2014

As part of my build I have a 'Source Code Checkout' task. I do not have the "force clean build' checkbox checked.

When I run my builds I observe the following log, and in my mind the "Initialized empty Git repository" log message means "starting from fresh, going to clone the repo again".

What exactly is going on here? Fresh clone, or just "changes since last build"?

Perhaps since I'm using EC2, my elastic instance is destroyed between commits, thus it must re-clone the entire repo since the one from the previous build no longer exists?

27-Mar-2014 16:48:33 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
27-Mar-2014 16:48:33 Updating source code to revision: 77c67a3aa89d557b6e28fd285cc2aeb446d6be91
27-Mar-2014 16:48:34 Creating local git repository in '/home/bamboo/bamboo-agent-home/xml-data/build-dir/GRDCS-CSBETA-JOB1/.git'.
27-Mar-2014 16:48:34 Initialized empty Git repository in /home/bamboo/bamboo-agent-home/xml-data/build-dir/GRDCS-CSBETA-JOB1/.git/
27-Mar-2014 16:48:35 Fetching 'refs/heads/master' from 'https://bitbucket.org/myorg/myapp'.
27-Mar-2014 16:48:46 From https://bitbucket.org/myorg/myapp
27-Mar-2014 16:48:46 * [new branch] master -> master
27-Mar-2014 16:48:46 Checking out revision 77c67a3aa89d557b6e28fd285cc2aeb446d6be91.
27-Mar-2014 16:48:46 Already on 'master'
27-Mar-2014 16:48:47 Updated source code to revision: 77c67a3aa89d557b6e28fd285cc2aeb446d6be91
27-Mar-2014 16:48:47 Finished task 'Checkout Default Repository'

1 answer

0 votes
LucasA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 7, 2014

Hi Craig,

Yes, if you're not using EBS volumes, all data will be retrived again. To use EBS volumes and persist your data, please take a look at https://confluence.atlassian.com/display/BAMBOO/Configuring+elastic+instances+to+use+the+EBS

Lucas Lima

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events