generate jenkinsfile
Some checks failed
dockers/alpine/pipeline/head There was a failure building this commit
Some checks failed
dockers/alpine/pipeline/head There was a failure building this commit
This commit is contained in:
parent
64c4699dd7
commit
5cda8ff0b0
1 changed files with 1 additions and 0 deletions
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
|
@ -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"""
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue