[infra] docker-cleanup definition

This commit is contained in:
Mike Aizatsky 2016-07-20 17:24:13 -07:00
parent b9ffe9ad5f
commit 378620903e
1 changed files with 2 additions and 2 deletions

View File

@ -16,12 +16,12 @@
// Jenkins build script for periodic docker images cleanup.
step "Cleanup Processes", concurrency: 1
stage "Cleanup Processes", concurrency: 1
node {
sh "docker rm \$(docker ps -a -q) || true"
}
step "Cleanup Images", concurrency: 1
stage "Cleanup Images", concurrency: 1
node {
sh "docker rmi \$(docker images -q -f dangling=true) || true"
}