fix jenkinsfile structure, add retry(5) to checkout
This commit is contained in:
3
platform/Jenkinsfile
vendored
3
platform/Jenkinsfile
vendored
@@ -11,6 +11,7 @@ pipeline {
|
|||||||
skipDefaultCheckout()
|
skipDefaultCheckout()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
retry(5) {
|
retry(5) {
|
||||||
@@ -91,7 +92,7 @@ pipeline {
|
|||||||
echo '✅ Pipeline succeeded — build + Sonar passed, deployed to k8s'
|
echo '✅ Pipeline succeeded — build + Sonar passed, deployed to k8s'
|
||||||
}
|
}
|
||||||
failure {
|
failure {
|
||||||
echo '❌ Pipeline failed check logs'
|
echo '❌ Pipeline failed — check logs'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user