diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-12-08 13:51:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-12-08 13:51:09 +0000 |
commit | 3ed69deabb7d20ccdf2dfbbacb5ab48f3c9e044f (patch) | |
tree | f99d51138516363fa51faf8ea39963c5684077ae /jjb/functest/functest-cleanup.sh | |
parent | f6add0a76589049a482308aff810658782f22ea9 (diff) | |
parent | b1ee51cf44ab63dbfaf21834c90c8fb8adb0eb4e (diff) |
Merge "functest,doctor: CLEAN_DOCKER_IMAGES"
Diffstat (limited to 'jjb/functest/functest-cleanup.sh')
-rwxr-xr-x | jjb/functest/functest-cleanup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jjb/functest/functest-cleanup.sh b/jjb/functest/functest-cleanup.sh index 4bedfe7de..3c4c7f965 100755 --- a/jjb/functest/functest-cleanup.sh +++ b/jjb/functest/functest-cleanup.sh @@ -10,7 +10,7 @@ if [[ ! -z $(docker ps -a | grep opnfv/functest) ]]; then fi # Remove existing images if exist -if [[ ! -z $(docker images | grep opnfv/functest) ]]; then +if [[ $CLEAN_DOCKER_IMAGES ]] && [[ ! -z $(docker images | grep opnfv/functest) ]]; then echo "Docker images to remove:" docker images | head -1 && docker images | grep opnfv/functest >${redirect} image_tags=($(docker images | grep opnfv/functest | awk '{print $2}')) |