Skip to content

Commit

Permalink
Use shallow checkouts, those used to be an issue only with SLC6 IIRC.
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel-Naumann committed Jul 5, 2021
1 parent ce6454a commit 85e67fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GenericBuild.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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]]])
Expand All @@ -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]]])
Expand Down

0 comments on commit 85e67fb

Please sign in to comment.