X-Git-Url: https://gerrit.onap.org/r/gitweb?p=oom.git;a=blobdiff_plain;f=.ci%2Fcheck-for-staging-images.sh;fp=kubernetes%2Fcontrib%2Ftools%2Fcheck-for-staging-images.sh;h=ae183b61f1be27cf697da734deee1a742fe9a345;hp=9705ee6ea879adfa4466ccfdbf9bde18b2240633;hb=d035a0a5fea7bf94cab1b1d6816c61febdfb8eb6;hpb=d09f363e87c98d19ba2fccdf8f235d5cbfb908ee diff --git a/kubernetes/contrib/tools/check-for-staging-images.sh b/.ci/check-for-staging-images.sh similarity index 96% rename from kubernetes/contrib/tools/check-for-staging-images.sh rename to .ci/check-for-staging-images.sh index 9705ee6ea8..ae183b61f1 100755 --- a/kubernetes/contrib/tools/check-for-staging-images.sh +++ b/.ci/check-for-staging-images.sh @@ -1,6 +1,7 @@ #!/bin/sh # Copyright © 2020 Samsung Electronics +# Modification copyright © 2021 Orange # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,10 +17,6 @@ BASE_URL="https://nexus3.onap.org/repository/docker.release" -if [ "$GERRIT_BRANCH" = "staging" ]; then - exit 0 -fi - USED_IMAGES=$(grep -r -E -o -h ':\s*onap/.*:.*' | sed -e 's/^: //' -e 's/^ //' | sort | uniq) REPO_IMAGES=$(curl -s $BASE_URL/v2/_catalog | jq -r '.repositories[]') NOT_AVAILABLE_IMAGES=$(echo "$USED_IMAGES" | grep -vE "$(echo "$REPO_IMAGES" | tr "\n" "|" | sed 's/|$//')")