3 if [ "$#" -ne 1 ]; then
4 echo This script checks docker-manifest-staging.csv to verify that the specified versions exist in nexus3
5 echo "$0 <docker-manifest-staging.csv>"
9 if [ -z "$WORKSPACE" ]; then
10 export WORKSPACE=`git rev-parse --show-toplevel`
13 NEXUS_PUBLIC_PREFIX="https://nexus3.onap.org/repository/docker.public/v2"
14 NEXUS_RELEASE_PREFIX="https://nexus3.onap.org/repository/docker.release/v2"
17 for line in $(tail -n +2 $1); do
18 image=$(echo $line | cut -d , -f 1)
19 tag=$(echo $line | cut -d , -f 2)
21 tags=$(curl -s $NEXUS_PUBLIC_PREFIX/$image/tags/list | jq -r '.tags[]' 2> /dev/null)
22 echo "$tags" | grep -q "^$tag\$"
24 echo "[ERROR] $image:$tag not found"
25 #echo "$tags" | sed 's/^/ /'
28 echo "[INFO] $image:$tag OK"