add retry(5) to checkout stage - gitea git-upload-pack drops connections intermittently
This commit is contained in:
29
platform/Jenkinsfile
vendored
29
platform/Jenkinsfile
vendored
@@ -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
|
||||
]]
|
||||
])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user