From 29f17851a41d5eb6f9bd86c9c022c6d6bc8f901a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C2=B6rgen=20Karlsson?= Date: Mon, 19 Oct 2015 12:38:51 +0200 Subject: [PATCH] Add cleanup to yardstick daily job MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ic694c9d9e042251fbcce22fdf241504804d4f51d JIRA:- Signed-off-by: Jo¶rgen Karlsson --- jjb/yardstick/yardstick.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.16.6