[infra] docker-cleanup definition

This commit is contained in:
Mike Aizatsky 2016-07-20 17:25:23 -07:00
parent 378620903e
commit 0e8e0fdc91
1 changed files with 2 additions and 2 deletions

View File

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