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 {
|
post {
|
||||||
always {
|
always {
|
||||||
script {
|
script {
|
||||||
if (dockerImage != null) {
|
try {
|
||||||
dockerImage.stop()
|
if (dockerImage != null) {
|
||||||
dockerImage.remove()
|
dockerImage.stop()
|
||||||
|
dockerImage.remove()
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
echo "Error during cleanup: ${e.message}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -93,4 +97,4 @@ pipeline {
|
||||||
echo 'Pipeline failed.'
|
echo 'Pipeline failed.'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue