generated Jenkinsfile
All checks were successful
dockers/debian/pipeline/head This commit looks good
All checks were successful
dockers/debian/pipeline/head This commit looks good
This commit is contained in:
parent
5596d9364d
commit
f4210565ef
1 changed files with 2 additions and 3 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -44,12 +44,11 @@ pipeline {
|
|||
}
|
||||
|
||||
post {
|
||||
success {
|
||||
always {
|
||||
sh """docker container prune -f"""
|
||||
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 -e SCRATCH -e bootstrapped | 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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue