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()
}
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
]]
])
}
}
}