X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=shell%2Fpublish_helm_charts.sh;h=be0fa96424eca04653cfaac4a3df71075a507064;hb=76fcb5e47365d599b72839be9c6eb1508d1ef581;hp=23c5fbd9da345045dcd1a4afb2b9d141cdc64700;hpb=8cab4cdae78fc12ce61ea8b6c9dd0f61a5127efa;p=ci-management.git diff --git a/shell/publish_helm_charts.sh b/shell/publish_helm_charts.sh index 23c5fbd9d..be0fa9642 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,19 +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') - echo "Release automation not implemented yet." - exit 1 + echo " * release build, pushing to https://nexus3.onap.org/repository/onap-helm-release/" + curl -n --upload-file "$chart" "https://nexus3.onap.org/repository/onap-helm-release/" ;; *) echo "You must set BUILD_TYPE to one of (snapshot, staging, release)." @@ -29,4 +30,5 @@ for chart in "${helm_charts[@]}"; do ;; esac done +echo "*** release process finished" cd ../../../