Always create a repo_root copy of a repo when necessary - in order to speed up jobs
This commit is contained in:
parent
b598a99b2e
commit
2a8f6327ec
1 changed files with 3 additions and 3 deletions
|
|
@ -34,10 +34,10 @@ 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}/${reporootname}"
|
||||
reporootsubfolder = "${reporootenv}/${reporootsubfolder}"
|
||||
|
||||
if (!fileExists(reporootsubfolder)) {
|
||||
echo "Checking out ${gitURL} to ${reporootname}"
|
||||
echo "Checking out ${gitURL} to ${reporootsubfolder}"
|
||||
checkout([
|
||||
$class: 'GitSCM',
|
||||
userRemoteConfigs: [
|
||||
|
|
@ -56,7 +56,7 @@ def String checkouttoreporoot(String gitURL) {
|
|||
submoduleCfg: [],
|
||||
])
|
||||
} else {
|
||||
echo "Found ${gitURL} checked out at ${reporootname}"
|
||||
echo "Found ${gitURL} checked out at ${reporootsubfolder}"
|
||||
}
|
||||
}
|
||||
return reporootsubfolder
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue