From c170691e6619d12224df0d452d4707b513cc7279 Mon Sep 17 00:00:00 2001 From: Brady-Malott <55215446+Brady-Malott@users.noreply.github.com> Date: Sun, 26 Feb 2023 17:52:10 -0500 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index eed8f9a..600ef80 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ pipeline { sh 'docker stop $(docker ps -q --filter ancestor=microblog:latest) || true && docker rm $(docker ps -q --filter ancestor=microblog:latest) || true' // Deploy new container sh 'docker run --name microblog -d -p 5000:5000 --rm microblog:latest' - // Remove all images that don't have a container running them + // Remove all images except for jenkins sh 'docker image prune --filter "label!=org.opencontainers.image.vendor=Jenkins project"' } }