From 99046cae1ff47b003c8187d1b6bf27c156339f2d Mon Sep 17 00:00:00 2001 From: Giulia Naponiello Date: Mar 04 2020 15:55:07 +0000 Subject: Run docker prune before building the image in the JJ Signed-off-by: Giulia Naponiello --- diff --git a/Jenkinsfile b/Jenkinsfile index 2989c2a..76bd9b3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -144,6 +144,7 @@ node('docker') { * the rules in PEP440. But Docker does not let us have + in the tag * name, so let's munge it here. */ appversion = appversion.replace('+', '-') + sh 'docker image prune -a -f' docker.withRegistry( 'https://docker-registry.upshift.redhat.com/', 'factory2-upshift-registry-token') {