generated Jenkinsfile

This commit is contained in:
chris 2020-10-29 15:47:48 +01:00
parent eb89879930
commit c6ad11f608
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -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 | grep -vi SCRATCH); do docker rmi -f \$(docker images -q \${image}); done"""
sh """for image in \$(grep FROM Dockerfile | cut -d ' ' -f 2 | grep -vi SCRATCH | uniq); do 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