add retry(5) to checkout stage - gitea git-upload-pack drops connections intermittently

This commit is contained in:
2026-08-14 12:49:06 +01:00
parent 9791d541de
commit 8f6add243f

View File

@@ -11,9 +11,9 @@ pipeline {
skipDefaultCheckout() skipDefaultCheckout()
} }
stages {
stage('Checkout') { stage('Checkout') {
steps { steps {
retry(5) {
checkout([ checkout([
$class: 'GitSCM', $class: 'GitSCM',
branches: scm.branches, branches: scm.branches,
@@ -23,11 +23,12 @@ pipeline {
shallow: true, shallow: true,
depth: 1, depth: 1,
noTags: true, noTags: true,
timeout: 20 timeout: 30
]] ]]
]) ])
} }
} }
}
stage('Build Docker Image') { stage('Build Docker Image') {
steps { steps {