Change-Id: I8ebc0e6a8b923a4b9c81403ade7248a4396b179e
Issue-ID: INT-504
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
</configuration>
</execution>
<execution>
</configuration>
</execution>
<execution>
- <id>check-docker-images-exist</id>
+ <id>check-docker-images-released</id>
<phase>validate</phase>
<goals>
<goal>exec</goal>
<phase>validate</phase>
<goals>
<goal>exec</goal>
image=$(echo $line | cut -d , -f 1)
tag=$(echo $line | cut -d , -f 2)
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 "$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++ ))
#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