fix jenkinsfile structure, add retry(5) to checkout
This commit is contained in:
5
platform/Jenkinsfile
vendored
5
platform/Jenkinsfile
vendored
@@ -11,7 +11,8 @@ pipeline {
|
|||||||
skipDefaultCheckout()
|
skipDefaultCheckout()
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Checkout') {
|
stages {
|
||||||
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
retry(5) {
|
retry(5) {
|
||||||
checkout([
|
checkout([
|
||||||
@@ -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