From 85e67fbac7415df71b16ed7730e0ffb211f8a108 Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Mon, 5 Jul 2021 18:19:06 +0200 Subject: [PATCH] Use shallow checkouts, those used to be an issue only with SLC6 IIRC. --- GenericBuild.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GenericBuild.groovy b/GenericBuild.groovy index 6c04551..ab89a4b 100644 --- a/GenericBuild.groovy +++ b/GenericBuild.groovy @@ -30,7 +30,7 @@ node(LABEL) { // TODO: Use the git step when it has implemented specifying refspecs // See https://jenkins.io/doc/pipeline/steps/workflow-scm-step/ for CloneOption checkout([$class: 'GitSCM', branches: [[name: ROOT_BRANCH]], doGenerateSubmoduleConfigurations: false, - extensions: [[$class: 'CloneOption', timeout: 10, noTags: true, shallow: false]] + extensions: [[$class: 'CloneOption', timeout: 10, noTags: true, shallow: true]] +[[$class: 'LocalBranch', localBranch: '']] +[[$class: 'CleanBeforeCheckout', deleteUntrackedNestedRepositories: true]], submoduleCfg: [], userRemoteConfigs: [[refspec: ROOT_REFSPEC, url: env.GIT_URL]]]) @@ -42,7 +42,7 @@ node(LABEL) { def rootTestUrl = 'http://root.cern/git/roottest.git'; // TODO: Use the git step when it has implemented specifying refspecs checkout([$class: 'GitSCM', branches: [[name: ROOTTEST_BRANCH]], doGenerateSubmoduleConfigurations: false, - extensions: [[$class: 'CloneOption', timeout: 10, noTags: true, shallow: false]] + extensions: [[$class: 'CloneOption', timeout: 10, noTags: true, shallow: true]] +[[$class: 'LocalBranch', localBranch: '']] +[[$class: 'CleanBeforeCheckout', deleteUntrackedNestedRepositories: true]], submoduleCfg: [], userRemoteConfigs: [[refspec: ROOTTEST_REFSPEC, url: rootTestUrl]]])