Always create a repo_root copy of a repo when necessary - in order to speed up jobs

This commit is contained in:
Dan Hawkins 2019-03-29 08:56:01 +00:00
commit 6beb745a69

View file

@ -34,7 +34,7 @@ def String checkouttoreporoot(String gitURL) {
echo "To improve Git performance: Define the REPO_ROOT enviroment to a path where a cache of git repositories can be placed on this slave"
} else {
def reporootname = uniquereporootname(gitURL)
reporootsubfolder = "${reporootenv}/${reporootsubfolder}"
reporootsubfolder = "${reporootenv}/${reporootname}"
if (!fileExists(reporootsubfolder)) {
echo "Checking out ${gitURL} to ${reporootsubfolder}"