- if grep -r -n -E ':\s*onap/.*:.*(STAGING|SNAPSHOT|latest).*'; then
- echo "[ERROR] Only release images are allowed in helm charts."
- exit 1
+ if [ "$GERRIT_BRANCH" != "staging" ]; then
+ if grep -r -n -E ':\s*onap/.*:.*(STAGING|SNAPSHOT|latest).*'; then
+ echo "[ERROR] Only release images are allowed in helm charts."
+ exit 1
+ fi