add retry(5) to checkout stage - gitea git-upload-pack drops connections intermittently
This commit is contained in:
5
platform/Jenkinsfile
vendored
5
platform/Jenkinsfile
vendored
@@ -11,9 +11,9 @@ pipeline {
|
|||||||
skipDefaultCheckout()
|
skipDefaultCheckout()
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
|
retry(5) {
|
||||||
checkout([
|
checkout([
|
||||||
$class: 'GitSCM',
|
$class: 'GitSCM',
|
||||||
branches: scm.branches,
|
branches: scm.branches,
|
||||||
@@ -23,11 +23,12 @@ pipeline {
|
|||||||
shallow: true,
|
shallow: true,
|
||||||
depth: 1,
|
depth: 1,
|
||||||
noTags: true,
|
noTags: true,
|
||||||
timeout: 20
|
timeout: 30
|
||||||
]]
|
]]
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Build Docker Image') {
|
stage('Build Docker Image') {
|
||||||
steps {
|
steps {
|
||||||
|
|||||||
Reference in New Issue
Block a user