jjb/releng: fix partial image name matching 81/59481/1
authorYibo Cai <yibo.cai@arm.com>
Tue, 3 Jul 2018 02:48:09 +0000 (10:48 +0800)
committerYibo Cai <yibo.cai@arm.com>
Tue, 3 Jul 2018 03:04:49 +0000 (11:04 +0800)
commit4259f7929aff5ca8e665e04d468329a7ac13673e
tree8298563cbaa38fd46df98e0830f24be13773dccd
parent8e98caa3db263059fefb41903103e75d7a480d74
jjb/releng: fix partial image name matching

Docker image building script opnfv-docker.sh tries to remove existing
images before and after building. It simply uses grep to matching image
names, which may cause partial name matching problems.
Ex. opnfv/compass-tasks will match both opnfv/compass-tasks and
opnfv/compass-tasks-base, and may lead to accidentally removing of
images still in use when several building tasks run concurrently.

Error log:
https://build.opnfv.org/ci/job/compass-tasks-build-arm64-master/6/console

Change-Id: I1a83f801c5e0cc889cd9e17b8d1b4d895f1f68a9
Signed-off-by: Yibo Cai <yibo.cai@arm.com>
jjb/releng/opnfv-docker.sh