From 2915ed89da312d696673bd705bf0481222c33b13 Mon Sep 17 00:00:00 2001 From: Sylvain Desbureaux Date: Fri, 28 May 2021 16:08:58 +0200 Subject: [OOM] Use new helm repositories Instead of using "old" repositories, uses the new ones Issue-ID: OOM-2759 Signed-off-by: Sylvain Desbureaux Change-Id: I011a7ff225379a0648de8eadb687d4f7fe0a0fa8 --- shell/helm-repo-init.sh | 1 + shell/publish_helm_charts.sh | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'shell') diff --git a/shell/helm-repo-init.sh b/shell/helm-repo-init.sh index d8990434a..937f0e7d0 100755 --- a/shell/helm-repo-init.sh +++ b/shell/helm-repo-init.sh @@ -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 diff --git a/shell/publish_helm_charts.sh b/shell/publish_helm_charts.sh index 9c511c5b6..a6a09ebf1 100755 --- a/shell/publish_helm_charts.sh +++ b/shell/publish_helm_charts.sh @@ -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)." -- cgit 1.2.3-korg