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
64c4699dd7
commit
5cda8ff0b0
|
@ -45,6 +45,7 @@ pipeline {
|
||||||
|
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
|
sh """docker image prune -f"""
|
||||||
sh """docker rmi -f \$(docker images -q $registry/$repo/$project:$version)"""
|
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"""
|
sh """for image in \$(grep FROM Dockerfile | cut -d ' ' -f 2); do docker rmi -f \$(docker images -q \${image}); done"""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue