Compare commits

...

2 Commits

View File

@@ -14,6 +14,7 @@ pipeline {
stages { stages {
stage('Checkout') { stage('Checkout') {
steps { steps {
retry(5) {
checkout([ checkout([
$class: 'GitSCM', $class: 'GitSCM',
branches: scm.branches, branches: scm.branches,
@@ -23,11 +24,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 {
@@ -90,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'
} }
} }
} }