diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2015-10-29 11:54:13 +0100 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2015-10-29 11:54:13 +0100 |
commit | 8f745b59bafb4073945834236157756bcbcea135 (patch) | |
tree | 7bfd187c25d74c75150e27a5c4a0565fcb9cf21f /jjb/functest | |
parent | 0810b34e930d0d28950ab45376f74d442a597829 (diff) |
Functest job remove container fixed
JIRA: FUNCTEST-85
Change-Id: I8fb3909fd90421662d15e36d675d360d568e70e5
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'jjb/functest')
-rw-r--r-- | jjb/functest/functest.yml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/jjb/functest/functest.yml b/jjb/functest/functest.yml index 92afa7d0f..e300dd11e 100644 --- a/jjb/functest/functest.yml +++ b/jjb/functest/functest.yml @@ -646,7 +646,8 @@ set +e # cleanup: remove any docker containers leftovers - docker ps | grep opnfv/functest | awk '{print $1}' | xargs docker stop &>/dev/null - docker ps -a | grep opnfv/functest | awk '{print $1}' | xargs docker rm &>/dev/null - docker images | grep opnfv/functest | awk '{print $3}' | xargs docker rmi &>/dev/null + echo "Removing the docker container..." + docker rm -f $(docker ps | grep opnfv/functest | awk '{print $1}') + echo "Removing the docker image..." + docker rmi -f $(docker images | grep opnfv/functest | awk '{print $3}') |