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