mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 23:05:49 +00:00
ahwjiasjdojiqowe
This commit is contained in:
parent
d6a0b57127
commit
a2be3cc8c4
1 changed files with 2 additions and 1 deletions
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
@ -47,7 +47,8 @@ pipeline {
|
||||||
// Use the saved Docker image ID from the environment if needed
|
// Use the saved Docker image ID from the environment if needed
|
||||||
if (env.DOCKER_IMAGE_ID) {
|
if (env.DOCKER_IMAGE_ID) {
|
||||||
echo "Stopping and removing Docker Image with ID: ${env.DOCKER_IMAGE_ID}"
|
echo "Stopping and removing Docker Image with ID: ${env.DOCKER_IMAGE_ID}"
|
||||||
docker.rmi(env.DOCKER_IMAGE_ID)
|
def dockerImage = docker.image(env.DOCKER_IMAGE_ID)
|
||||||
|
dockerImage.remove()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue