X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=mvn-phase-script.sh;h=0944b913f630225b43399a34656af388dce08cd8;hb=HEAD;hp=bf0396bed6d7466492eab7d03aa61754766153d6;hpb=c1be0395714dc7448e8acd262d60c5312c6889e5;p=dcaegen2%2Fplatform%2Fcli.git diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh index bf0396b..0944b91 100755 --- a/mvn-phase-script.sh +++ b/mvn-phase-script.sh @@ -39,8 +39,15 @@ if [ -z "$SETTINGS_FILE" ]; then fi +set -e +RELEASE_TAG=${MVN_RELEASE_TAG:-R6} +if [ "$RELEASE_TAG" != "R1" ]; then + RELEASE_TAGGED_DIR="${RELEASE_TAG}/" +else + RELEASE_TAGGED_DIR="releases" +fi if ! wget -O ${PROJECT_ROOT}/mvn-phase-lib.sh \ - "$MVN_RAWREPO_BASEURL_DOWNLOAD"/org.onap.dcaegen2.utils/R2/scripts/mvn-phase-lib.sh; then + "$MVN_RAWREPO_BASEURL_DOWNLOAD"/org.onap.dcaegen2.utils/${RELEASE_TAGGED_DIR}scripts/mvn-phase-lib.sh; then echo "Fail to download mvn-phase-lib.sh" exit 1 fi