From 8f6add243f5b92a0a3bb87204daa95be97328cb9 Mon Sep 17 00:00:00 2001 From: ameniboukattaya Date: Fri, 14 Aug 2026 12:49:06 +0100 Subject: [PATCH] add retry(5) to checkout stage - gitea git-upload-pack drops connections intermittently --- platform/Jenkinsfile | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/platform/Jenkinsfile b/platform/Jenkinsfile index 16bbb02..ab47fe8 100644 --- a/platform/Jenkinsfile +++ b/platform/Jenkinsfile @@ -11,21 +11,22 @@ pipeline { skipDefaultCheckout() } - stages { - stage('Checkout') { + stage('Checkout') { steps { - checkout([ - $class: 'GitSCM', - branches: scm.branches, - userRemoteConfigs: scm.userRemoteConfigs, - extensions: [[ - $class: 'CloneOption', - shallow: true, - depth: 1, - noTags: true, - timeout: 20 - ]] - ]) + retry(5) { + checkout([ + $class: 'GitSCM', + branches: scm.branches, + userRemoteConfigs: scm.userRemoteConfigs, + extensions: [[ + $class: 'CloneOption', + shallow: true, + depth: 1, + noTags: true, + timeout: 30 + ]] + ]) + } } }