generate jenkinsfile
dockers/alpine/pipeline/head There was a failure building this commit
Details
dockers/alpine/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
0002d1810d
commit
586fe25f4f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue