Full clone or just revisions?

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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
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,686 views 0 6
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