Disable SBOM generator
[ci-management.git] / shell / publish_helm_charts.sh
index 02a0c74..4cc27fe 100755 (executable)
@@ -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/$chart"
-      curl -n --upload-file "$chart" "https://nexus.onap.org/content/sites/oom-helm-$BUILD_TYPE/$chart"
-      curl -n --upload-file "$chart" "https://nexus.onap.org/content/sites/oom-helm-$BUILD_TYPE/$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/$chart"
-      curl -n --upload-file "$chart" "https://nexus.onap.org/content/sites/oom-helm-$BUILD_TYPE/$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 -vn --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 ../../../