summaryrefslogtreecommitdiffstats
path: root/jjb/dovetail/dovetail-cleanup.sh
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2017-05-18 02:45:11 -0400
committerMatthewLi <matthew.lijun@huawei.com>2017-05-18 02:52:13 -0400
commit778d33db56142ad0301da9e253822d1883166bb4 (patch)
tree1a980c6c267859c70283e04aa508909ee181940e /jjb/dovetail/dovetail-cleanup.sh
parent90f6563370e3c152f884fd1c811fca7457f07004 (diff)
dovetail: offline support by making users to download docker images from artifacts
JIRA: DOVETAIL-433 1) bugfix of cleanup by using existed dovetail cleanup scripts, see logs https://build.opnfv.org/ci/view/dovetail/job/dovetail-functest-artifacts-upload-master/3/console 2) opnfv/testapi:latest and mongo:3.5 images are needed for dovetail, added. Change-Id: I647f7152b0122a5b792f6f18efbae0e537b81332 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'jjb/dovetail/dovetail-cleanup.sh')
-rwxr-xr-xjjb/dovetail/dovetail-cleanup.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/jjb/dovetail/dovetail-cleanup.sh b/jjb/dovetail/dovetail-cleanup.sh
index 22b2ba2ce..0ee789a97 100755
--- a/jjb/dovetail/dovetail-cleanup.sh
+++ b/jjb/dovetail/dovetail-cleanup.sh
@@ -2,8 +2,8 @@
[[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
-#clean up dependent project docker images, which has no containers and image tag None
-clean_images=(opnfv/functest opnfv/yardstick)
+# clean up dependent project docker images, which has no containers and image tag None
+clean_images=(opnfv/functest opnfv/yardstick opnfv/testapi mongo)
for clean_image in "${clean_images[@]}"; do
echo "Removing image $image_id, which has no containers and image tag is None"
dangling_images=($(docker images -f "dangling=true" | grep ${clean_image} | awk '{print $3}'))
@@ -14,7 +14,7 @@ for clean_image in "${clean_images[@]}"; do
fi
done
-echo "Remove containers with image dovetail:<None>..."
+echo "Remove containers with image opnfv/dovetail:<None>..."
dangling_images=($(docker images -f "dangling=true" | grep opnfv/dovetail | awk '{print $3}'))
if [[ -n ${dangling_images} ]]; then
for image_id in "${dangling_images[@]}"; do
@@ -24,7 +24,7 @@ if [[ -n ${dangling_images} ]]; then
done
fi
-echo "Cleaning up dovetail docker containers/images..."
+echo "Cleaning up dovetail docker containers..."
if [[ ! -z $(docker ps -a | grep opnfv/dovetail) ]]; then
echo "Removing existing opnfv/dovetail containers..."
docker ps -a | grep opnfv/dovetail | awk '{print $1}' | xargs docker rm -f >${redirect}