aboutsummaryrefslogtreecommitdiffstats
path: root/version-manifest/src/main/scripts
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-06-06 14:52:29 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-06-06 15:25:10 -0700
commit2f55cbd70dbb896ce181ad738a1d35a6761d4d35 (patch)
treebf5ed19b5731b4c1da54fbc565fdbc60d9d5ab2b /version-manifest/src/main/scripts
parentd443ad7865e5d4c2b802d8504475f1360c2d03d5 (diff)
Allow only released docker images in the manifest
Change-Id: I8ebc0e6a8b923a4b9c81403ade7248a4396b179e Issue-ID: INT-504 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'version-manifest/src/main/scripts')
-rwxr-xr-xversion-manifest/src/main/scripts/check-docker-manifest.sh12
1 files changed, 2 insertions, 10 deletions
diff --git a/version-manifest/src/main/scripts/check-docker-manifest.sh b/version-manifest/src/main/scripts/check-docker-manifest.sh
index 26e63b82d..6aa2374b1 100755
--- a/version-manifest/src/main/scripts/check-docker-manifest.sh
+++ b/version-manifest/src/main/scripts/check-docker-manifest.sh
@@ -18,20 +18,12 @@ for line in $(tail -n +2 $1); do
image=$(echo $line | cut -d , -f 1)
tag=$(echo $line | cut -d , -f 2)
- tags=$(curl -s $NEXUS_PUBLIC_PREFIX/$image/tags/list | jq -r '.tags[]' 2> /dev/null)
+ tags=$(curl -s $NEXUS_RELEASE_PREFIX/$image/tags/list | jq -r '.tags[]' 2> /dev/null)
echo "$tags" | grep -q "^$tag\$"
if [ $? -ne 0 ]; then
- echo "[ERROR] $image:$tag not found"
+ echo "[ERROR] $image:$tag not released"
#echo "$tags" | sed 's/^/ /'
(( err++ ))
-
- else
- tags=$(curl -s $NEXUS_RELEASE_PREFIX/$image/tags/list | jq -r '.tags[]' 2> /dev/null)
- echo "$tags" | grep -q "^$tag\$"
- if [ $? -ne 0 ]; then
- echo "[WARN] $image:$tag not released"
- #echo "$tags" | sed 's/^/ /'
- fi
fi
done
exit $err