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

29
platform/Jenkinsfile vendored
View File

@@ -11,21 +11,22 @@ pipeline {
skipDefaultCheckout() skipDefaultCheckout()
} }
stages { stage('Checkout') {
stage('Checkout') {
steps { steps {
checkout([ retry(5) {
$class: 'GitSCM', checkout([
branches: scm.branches, $class: 'GitSCM',
userRemoteConfigs: scm.userRemoteConfigs, branches: scm.branches,
extensions: [[ userRemoteConfigs: scm.userRemoteConfigs,
$class: 'CloneOption', extensions: [[
shallow: true, $class: 'CloneOption',
depth: 1, shallow: true,
noTags: true, depth: 1,
timeout: 20 noTags: true,
]] timeout: 30
]) ]]
])
}
} }
} }