Update Jenkinsfile

This commit is contained in:
Mike Aizatsky 2016-10-10 15:38:26 -07:00 committed by GitHub
parent f3de7787a5
commit bc7ad84453
1 changed files with 6 additions and 2 deletions

View File

@ -17,12 +17,16 @@
// Jenkins build script for periodic docker images cleanup. // Jenkins build script for periodic docker images cleanup.
node { node {
stage name: 'Cleanup Processes', concurrency: 1 stage name: 'processes', concurrency: 1
sh "docker rm \$(docker ps -a -q) || true" 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" 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 "docker info"
sh "df -h" sh "df -h"
} }