From 366da90f74cf2d6010e031650d013ff3f97fa7b4 Mon Sep 17 00:00:00 2001
From: George Joseph <gjoseph@digium.com>
Date: Mon, 2 Dec 2019 05:48:01 -0700
Subject: [PATCH] CI: Turn off shallow cloning altogether

Change-Id: I73ed4aef33a92f20080128aafc34e19fd4457196
---
 tests/CI/gates.jenkinsfile           | 6 ++----
 tests/CI/periodics-daily.jenkinsfile | 3 +--
 tests/CI/ref_debug.jenkinsfile       | 3 +--
 tests/CI/unittests.jenkinsfile       | 3 +--
 4 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/tests/CI/gates.jenkinsfile b/tests/CI/gates.jenkinsfile
index e52d3a4cd3..a5465cecea 100644
--- a/tests/CI/gates.jenkinsfile
+++ b/tests/CI/gates.jenkinsfile
@@ -115,8 +115,7 @@ pipeline {
 									[$class: 'CloneOption',
 										honorRefspec: true,
 										noTags: true,
-										depth: 100,
-										shallow: true
+										shallow: false
 									],
 									[$class: 'PruneStaleBranch'],
 									[$class: 'BuildChooserSetting',
@@ -203,9 +202,8 @@ pipeline {
 												[$class: 'RelativeTargetDirectory', relativeTargetDir: groupDir],
 												[$class: 'CloneOption',
 													noTags: true,
-													depth: 100,
 													honorRefspec: true,
-													shallow: true
+													shallow: false
 												],
 											],
 											userRemoteConfigs: [
diff --git a/tests/CI/periodics-daily.jenkinsfile b/tests/CI/periodics-daily.jenkinsfile
index 11e9ed379a..3ba8dfcbde 100644
--- a/tests/CI/periodics-daily.jenkinsfile
+++ b/tests/CI/periodics-daily.jenkinsfile
@@ -81,9 +81,8 @@ pipeline {
 										[$class: 'RelativeTargetDirectory', relativeTargetDir: "tests/CI/output/publish-docs"],
 										[$class: 'CloneOption',
 											noTags: true,
-											depth: 100,
 											honorRefspec: true,
-											shallow: true
+											shallow: false
 										],
 									],
 									userRemoteConfigs: [[url: docUrl]]
diff --git a/tests/CI/ref_debug.jenkinsfile b/tests/CI/ref_debug.jenkinsfile
index 31fc85d4d9..742d5f88b1 100644
--- a/tests/CI/ref_debug.jenkinsfile
+++ b/tests/CI/ref_debug.jenkinsfile
@@ -102,9 +102,8 @@ pipeline {
 												[$class: 'RelativeTargetDirectory', relativeTargetDir: groupDir],
 												[$class: 'CloneOption',
 													noTags: true,
-													depth: 100,
 													honorRefspec: true,
-													shallow: true
+													shallow: false
 												],
 											],
 											userRemoteConfigs: [[url: testsuiteUrl]]
diff --git a/tests/CI/unittests.jenkinsfile b/tests/CI/unittests.jenkinsfile
index 96ea2133bf..1a0876d701 100644
--- a/tests/CI/unittests.jenkinsfile
+++ b/tests/CI/unittests.jenkinsfile
@@ -115,8 +115,7 @@ pipeline {
 									[$class: 'CloneOption',
 										honorRefspec: true,
 										noTags: true,
-										depth: 100,
-										shallow: true
+										shallow: false
 									],
 									[$class: 'PruneStaleBranch'],
 									[$class: 'BuildChooserSetting',
-- 
GitLab