mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
Latest Jenkinsfile
This commit is contained in:
parent
812ec78b69
commit
40819bc102
1 changed files with 8 additions and 4 deletions
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
|
@ -80,9 +80,13 @@ pipeline {
|
|||
post {
|
||||
always {
|
||||
script {
|
||||
if (dockerImage != null) {
|
||||
dockerImage.stop()
|
||||
dockerImage.remove()
|
||||
try {
|
||||
if (dockerImage != null) {
|
||||
dockerImage.stop()
|
||||
dockerImage.remove()
|
||||
}
|
||||
} catch (Exception e) {
|
||||
echo "Error during cleanup: ${e.message}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -93,4 +97,4 @@ pipeline {
|
|||
echo 'Pipeline failed.'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue