From 3cf5c7b78e7ed5314ca4508149861b7b7401fda8 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Wed, 20 Nov 2024 11:05:38 -0800 Subject: [PATCH] Update Jenkinsfile.* to use shallow clones of meta We don't need a full (unshallow) clone for any of these -- the jobs don't look at the commit history and we can make new commits without having history locally. This will help on architectures that have been struggling to clone the repository since the move (because a "full" clone is now bigger than it was when we started all this), but is also generally better all around. --- Jenkinsfile.build | 5 +++++ Jenkinsfile.deploy | 5 +++++ Jenkinsfile.meta | 5 +++++ Jenkinsfile.trigger | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/Jenkinsfile.build b/Jenkinsfile.build index 8d7349b..e708904 100644 --- a/Jenkinsfile.build +++ b/Jenkinsfile.build @@ -20,6 +20,11 @@ node('multiarch-' + env.BASHBREW_ARCH) { ansiColor('xterm') { ]], branches: [[name: '*/main']], extensions: [ + cloneOption( + noTags: true, + shallow: true, + depth: 1, + ), submodule( parentCredentials: true, recursiveSubmodules: true, diff --git a/Jenkinsfile.deploy b/Jenkinsfile.deploy index 58b656f..b8e4d40 100644 --- a/Jenkinsfile.deploy +++ b/Jenkinsfile.deploy @@ -25,6 +25,11 @@ node('put-shared') { ansiColor('xterm') { ]], branches: [[name: '*/main']], extensions: [ + cloneOption( + noTags: true, + shallow: true, + depth: 1, + ), submodule( parentCredentials: true, recursiveSubmodules: true, diff --git a/Jenkinsfile.meta b/Jenkinsfile.meta index f6dc584..c0bc014 100644 --- a/Jenkinsfile.meta +++ b/Jenkinsfile.meta @@ -17,6 +17,11 @@ node { ]], branches: [[name: '*/main']], extensions: [ + cloneOption( + noTags: true, + shallow: true, + depth: 1, + ), submodule( recursiveSubmodules: true, parentCredentials: true, diff --git a/Jenkinsfile.trigger b/Jenkinsfile.trigger index 0006a37..76c0c73 100644 --- a/Jenkinsfile.trigger +++ b/Jenkinsfile.trigger @@ -26,6 +26,11 @@ node { ]], branches: [[name: '*/main']], extensions: [ + cloneOption( + noTags: true, + shallow: true, + depth: 1, + ), submodule( parentCredentials: true, recursiveSubmodules: true,