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

3
Jenkinsfile vendored
View File

@ -16,10 +16,11 @@ pipeline {
stage('Stop Backend Docker') {
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 {