[OOM] Use new helm repositories 89/121589/2
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 28 May 2021 14:08:58 +0000 (16:08 +0200)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 28 May 2021 14:34:06 +0000 (16:34 +0200)
Instead of using "old" repositories, uses the new ones

Issue-ID: OOM-2759
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I011a7ff225379a0648de8eadb687d4f7fe0a0fa8

shell/helm-repo-init.sh
shell/publish_helm_charts.sh

index d899043..937f0e7 100755 (executable)
@@ -8,3 +8,4 @@ chartmuseum --port=6464 --storage="local" --storage-local-rootdir=".chartstorage
 source helm.prop
 $HELM_BIN plugin install https://github.com/chartmuseum/helm-push.git
 $HELM_BIN repo add local http://localhost:6464
+$HELM_BIN repo add onap http://localhost:6464
index 9c511c5..a6a09eb 100755 (executable)
@@ -11,16 +11,13 @@ for chart in "${helm_charts[@]}"; do
   chart=$(echo "$chart" | xargs)
   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"
+      curl -n --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"
+      curl -n --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"
+      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)."