From: Jo¶rgen Karlsson Date: Mon, 19 Oct 2015 10:38:51 +0000 (+0200) Subject: Add cleanup to yardstick daily job X-Git-Tag: test-tag~250 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=29f17851a41d5eb6f9bd86c9c022c6d6bc8f901a;p=releng.git Add cleanup to yardstick daily job Change-Id: Ic694c9d9e042251fbcce22fdf241504804d4f51d JIRA:- Signed-off-by: Jo¶rgen Karlsson --- diff --git a/jjb/yardstick/yardstick.yml b/jjb/yardstick/yardstick.yml index 7d7a6b7b7..0ce9fd853 100644 --- a/jjb/yardstick/yardstick.yml +++ b/jjb/yardstick/yardstick.yml @@ -198,7 +198,7 @@ publishers: - email: - recipients: ana.cunha@ericsson.com + recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com ######################## # builder macros @@ -213,6 +213,12 @@ echo "Yardstick: Run benchmark test suites ..." + # Remove old containers + docker ps | grep opnfv/yardstick-ci |\ + awk '{print $1}' | xargs -r docker stop &>/dev/null + docker ps -a | grep opnfv/yardstick-ci |\ + awk '{print $1}' | xargs -r docker rm &>/dev/null + # Make sure we have latest image docker pull opnfv/yardstick-ci