X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=shell%2Fpublish_helm_charts.sh;h=4cc27fe2db622186dd087750270ae6436a3de972;hb=82a545a8c5e21bfa21339044ef62e4c3feea032e;hp=9c511c5b69671704a04e69962044fad4a8224c2b;hpb=ed8ead96917333f9f368c4703a2d4ee40933b8c5;p=ci-management.git diff --git a/shell/publish_helm_charts.sh b/shell/publish_helm_charts.sh index 9c511c5b6..4cc27fe2d 100755 --- a/shell/publish_helm_charts.sh +++ b/shell/publish_helm_charts.sh @@ -1,6 +1,7 @@ #!/bin/bash set -e -o pipefail +echo "*** starting releace process for $BUILD_TYPE" cd kubernetes/dist/packages/ || exit helm_charts=() while IFS= read -a line; do @@ -9,18 +10,19 @@ done < <( ls ) for chart in "${helm_charts[@]}"; do chart=$(echo "$chart" | xargs) + echo " ** processing chart $chart" case "$BUILD_TYPE" in 'snapshot') - echo "-n --upload-file $chart https://nexus.onap.org/content/sites/oom-helm-$BUILD_TYPE/$GERRIT_BRANCH/$chart" - curl -n --upload-file "$chart" "https://nexus.onap.org/content/sites/oom-helm-$BUILD_TYPE/$GERRIT_BRANCH/$chart" - curl -n --upload-file "$chart" "https://nexus.onap.org/content/sites/oom-helm-$BUILD_TYPE//$GERRIT_BRANCH/$GIT_COMMIT/$chart" + echo " * snapshot build, pushing to https://nexus3.onap.org/repository/onap-helm-testing/" + curl -vn --upload-file "$chart" "https://nexus3.onap.org/repository/onap-helm-testing/" ;; 'staging') - curl -n --upload-file "$chart" "https://nexus.onap.org/content/sites/oom-helm-$BUILD_TYPE/$GERRIT_BRANCH/$chart" - curl -n --upload-file "$chart" "https://nexus.onap.org/content/sites/oom-helm-$BUILD_TYPE/$GERRIT_BRANCH/$GIT_COMMIT/$chart" + echo " * staging build, pushing to https://nexus3.onap.org/repository/onap-helm-testing/" + curl -vn --upload-file "$chart" "https://nexus3.onap.org/repository/onap-helm-testing/" ;; 'release') - curl -n --upload-file "$chart" "https://nexus.onap.org/content/sites/oom-helm-$BUILD_TYPE/$chart" + echo " * release build, pushing to https://nexus3.onap.org/repository/onap-helm-release/" + curl -vn --upload-file "$chart" "https://nexus3.onap.org/repository/onap-helm-release/" ;; *) echo "You must set BUILD_TYPE to one of (snapshot, staging, release)." @@ -28,4 +30,5 @@ for chart in "${helm_charts[@]}"; do ;; esac done +echo "*** release process finished" cd ../../../