summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorhelenyao <yaohelan@huawei.com>2016-12-21 21:12:36 -0500
committerhelenyao <yaohelan@huawei.com>2016-12-21 21:12:36 -0500
commit0a67d3606166bcb3ccb04dae3bddf24d3ce8efd2 (patch)
treee7d8578ccd8e1fac049545ac4284460e32a1131f /jjb
parentc6311f43a1d0bb366f9a789af49beb8c1fd9779e (diff)
Bugfix: fix the wrong extraction of image_id
Change-Id: If1678725a1b417cf0a94265557a6d88aa7c416cb Signed-off-by: helenyao <yaohelan@huawei.com>
Diffstat (limited to 'jjb')
-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 f8140e058..b03d4778d 100755
--- a/jjb/functest/functest-cleanup.sh
+++ b/jjb/functest/functest-cleanup.sh
@@ -5,7 +5,7 @@
echo "Cleaning up docker containers/images..."
FUNCTEST_IMAGE=opnfv/functest
# Remove containers along with image opnfv/functest:<none>
-dangling_images=($(docker images -f "dangling=true" | grep $FUNCTEST_IMAGE | awk '{print $1}'))
+dangling_images=($(docker images -f "dangling=true" | grep $FUNCTEST_IMAGE | awk '{print $3}'))
if [[ -n ${dangling_images} ]]; then
echo " Removing $FUNCTEST_IMAGE:<none> images and their containers..."
for image_id in "${dangling_images[@]}"; do