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()
|
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
|
||||||
])
|
]]
|
||||||
|
])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user