summaryrefslogtreecommitdiffstats
path: root/jjb/functest
diff options
context:
space:
mode:
authorhelenyao <yaohelan@huawei.com>2016-12-18 20:17:02 -0500
committerhelenyao <yaohelan@huawei.com>2016-12-18 21:42:47 -0500
commitd78d0e1e358d294f5af61e4e800eeac67c23e56a (patch)
treed79c162aa0531dc8011091c95a902dbac320a2d7 /jjb/functest
parent6d2218c7b4295cd0764f4dbc1f3d5bf270b6cdc1 (diff)
Bug-Fix: Fix clean_image flag does not take effect
JIRA: FUNCTEST-665 In patch https://gerrit.opnfv.org/gerrit/#/c/25775/, it set CLEAN_DOCKER_IMAGES=false to save time. On CI job, the cleaning step is still undertaken. Change-Id: Iaca64d3a347dafa9c87975c756ea8bcb30ae2f93 Signed-off-by: helenyao <yaohelan@huawei.com>
Diffstat (limited to 'jjb/functest')
-rwxr-xr-xjjb/functest/functest-cleanup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/jjb/functest/functest-cleanup.sh b/jjb/functest/functest-cleanup.sh
index 3c4c7f965..a1ae67d99 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 [[ $CLEAN_DOCKER_IMAGES ]] && [[ ! -z $(docker images | grep opnfv/functest) ]]; then
+if [[ $CLEAN_DOCKER_IMAGES == true ]] && [[ ! -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}'))