catch error for stop step in Jenkinsfile

This commit is contained in:
medcl 2020-04-20 14:34:56 +08:00
parent 045b503a7e
commit 641226023b
1 changed files with 5 additions and 4 deletions

9
Jenkinsfile vendored
View File

@ -15,12 +15,13 @@ pipeline {
}
stage('Stop Backend Docker') {
steps {
sh 'cd /home/deploy/logging-center/docker && docker-compose -f docker-compose.dev.yml down || true'
}
steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE'){
sh 'cd /home/deploy/logging-center/docker && docker-compose -f docker-compose.dev.yml down || true'
}
}
}
stage('Update Front Docker') {
steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE'){