Update Jenkinsfile

This commit is contained in:
Tom Ruff
2024-10-05 13:26:04 +03:00
committed by GitHub
parent aa7f1a9955
commit 1f06ed1eb2

2
Jenkinsfile vendored
View File

@@ -57,7 +57,7 @@ pipeline {
} }
stage('Clean Old Container') { stage('Clean Old Container') {
steps { steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS',message: 'Container does\'nt exist on host, skipping...', stageResult: 'null ') {
sh 'docker stop otomai' sh 'docker stop otomai'
sh 'docker rm otomai' sh 'docker rm otomai'
} }