From 954af3cafbb9d0ee4a46406e5fdbab58dad97614 Mon Sep 17 00:00:00 2001 From: Jeremy Phelps Date: Wed, 28 Nov 2018 16:13:25 -0600 Subject: [PATCH] Add branch name for nexus helm charts Issue-ID: CIMAN-223 Change-Id: Ieeaf53ef868ee60f30427d6bce6a7d44a5c4d9fd Signed-off-by: Jeremy Phelps --- shell/publish_helm_charts.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shell/publish_helm_charts.sh b/shell/publish_helm_charts.sh index 02a0c74ae..23c5fbd9d 100755 --- a/shell/publish_helm_charts.sh +++ b/shell/publish_helm_charts.sh @@ -11,13 +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/$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 "-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" ;; '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" + 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" ;; 'release') echo "Release automation not implemented yet." -- 2.16.6