From 586fe25f4ff28c5db6a8a1229d84d943dba8ec7c Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 28 Oct 2020 18:04:34 +0100 Subject: [PATCH] generate jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 825017f..a6eab1f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,7 +47,7 @@ pipeline { success { sh """docker image prune -f""" sh """docker rmi -f \$(docker images -q $registry/$repo/$project:$version)""" - sh """for image in \$(grep FROM Dockerfile | cut -d ' ' -f 2); do [[ $image == "test" ]] || docker rmi -f \$(docker images -q \${image}); done""" + sh """for image in \$(grep FROM Dockerfile | cut -d ' ' -f 2); do [[ \$image == "test" ]] || docker rmi -f \$(docker images -q \${image}); done""" } always { emailext body: 'build finished', subject: '[jenkins] docker '+project+'('+version+'): ' + currentBuild.result, to: 'cg@zknt.org', from: 'sysadm@zknt.org', attachLog: true