saduijqwo

This commit is contained in:
Lihan 2024-07-28 01:36:42 -04:00
parent 65dc656eb7
commit 3e3d92ae5d

2
Jenkinsfile vendored
View file

@ -47,7 +47,7 @@ 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.image(env.DOCKER_IMAGE_ID).remove() sh "docker rmi -f ${env.DOCKER_IMAGE_ID}"
} }
} }
} }