Project: bamboo
Issue BAM-7437: Git repo should use shallow clones instead of full clones.
Currently we use full clones during: * collecting changes, on bamboo server * code retrieval, on agents, during performing build In both cases we don't need the whole history, so if it is possible we should do shallow clones. Shallow clones are not implemented in JGit yet. Also - both server and agents should be able to fetch afterwards properly. Corner test case: * detecting new rev A -> add to queue * detecting new rev B (grandchild of A) -> add to queue (concurrent builds are on) * agent -> takes rev B, does shallow clone on it (so it won't have rev A) * agent -> takes rev A, does fetch - in such case agent should somehow obtain rev A
Story points: 5