Faster way to replicate a clone from the archive

Is there a faster way to get a bare GIT repository onto your Bamboo agents?

Our archive 5+GB and takes more then half an hour to clone over to the agent. I've enabled repository caching and am using shallow clones on the agent but occasionally it starts (re)cloning the complete archive question.

This takes more then half an hour and then the jobs times out.

I was thinking of creating a temporary copy on a file share to have some sort of baseline to start from.

1 answer

1 vote
Marcin Oles Atlassian Team Jul 22, 2016

Hi Mark,

which VCS are you using? If it is Git, is option "Use shallow clones" enabled for the repository? It causes Bamboo and agents to only checkout most-recent commits, skipping as much history as possible. The option is available for multiple Git-related repository types in Bamboo, including Git, Bitbucket Server and Bitbucket Cloud. See https://confluence.atlassian.com/display/BAMBOO/Git for more details.

Regards,
Marcin

Hi Marcin,

Yes it's a GIT archive and I am already using shallow clones.

Even though I've marked this, it appears it is still downloading the complete archive ;-s

Cheers Mark,

 

P.s. I've edited my question to clarify it's a GIT archive and using shallow clones.

When I do a shallow clone with depth 1 on my workstation the .git repository only is 237MB.... and not 5BB

 

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
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,096 views 0 5
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot