From bc7ad844539f9c98db10efdb59b0d079428182f0 Mon Sep 17 00:00:00 2001 From: Mike Aizatsky Date: Mon, 10 Oct 2016 15:38:26 -0700 Subject: [PATCH] Update Jenkinsfile --- infra/docker-cleanup/Jenkinsfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/infra/docker-cleanup/Jenkinsfile b/infra/docker-cleanup/Jenkinsfile index db7d932d4..a9ebd28ba 100644 --- a/infra/docker-cleanup/Jenkinsfile +++ b/infra/docker-cleanup/Jenkinsfile @@ -17,12 +17,16 @@ // Jenkins build script for periodic docker images cleanup. node { - stage name: 'Cleanup Processes', concurrency: 1 + stage name: 'processes', concurrency: 1 sh "docker rm \$(docker ps -a -q) || true" - stage name: 'Cleanup Images', concurrency: 1 + stage name: 'images', concurrency: 1 sh "docker rmi \$(docker images -q -f dangling=true) || true" + stage name: 'volumes', concurrency: 1 + sh "docker volume rm $(docker volume ls -qf dangling=true) || true" + + stage name: 'info', concurrency: 1 sh "docker info" sh "df -h" }