add catcherror test step

This commit is contained in:
Roberto Cirillo 2022-04-28 15:17:22 +02:00
parent c6bbc0e18c
commit d638ec5d4f
1 changed files with 7 additions and 0 deletions

7
Jenkinsfile vendored
View File

@ -76,6 +76,13 @@ pipeline {
}
}
}
steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "exit 1"
}
}
steps {
sh '''
echo "cleanup $DEPLOY_FILE";
if [ -f ${DEPLOY_BACKUP} ]; then