fail case on job tested

This commit is contained in:
Roberto Cirillo 2022-04-28 16:01:32 +02:00
parent 34b5562dd4
commit 1d6274925a
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -76,7 +76,7 @@ pipeline {
println "Deploy on going of component: $component"
}
}
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
sh "exit 1"
}
sh '''
@ -132,7 +132,7 @@ pipeline {
steps {
echo "Cron build disabled. New deploy of ${params.TRIGGER_JOB} - ${params.TRIGGER_VERSION} ongoing"
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
sh "exit 1"
sh "exit 0"
}
}