generate jenkinsfile
dockers/alpine/pipeline/head There was a failure building this commit Details

This commit is contained in:
chris 2020-10-28 17:59:20 +01:00
parent 64c4699dd7
commit 5cda8ff0b0
1 changed files with 1 additions and 0 deletions

1
Jenkinsfile vendored
View File

@ -45,6 +45,7 @@ pipeline {
post {
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 docker rmi -f \$(docker images -q \${image}); done"""
}