2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2021 The Linux Foundation and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
11 echo "---> publish-help-charts.sh"
14 echo "*** starting releace process for $BUILD_TYPE"
17 cd "$WORKSPACE/helm/opendaylight" || exit
19 while IFS= read -rd $'\n'; do
20 helm_charts+=("$line")
21 done < <(find "$WORKSPACE/helm/opendaylight")
23 for chart in "${helm_charts[@]}"; do
24 chart=$(echo "$chart" | xargs)
25 echo " ** processing chart $chart"
28 echo " * snapshot build, pushing to https://nexus3.opendaylight.org/repository/packaging-helm-testing/"
29 curl -vn --upload-file "$chart" "https://nexus3.opendaylight.org/repository/packaging-helm-testing/"
32 echo " * staging build, pushing to https://nexus3.opendaylight.org/repository/packaging-helm-testing/"
33 curl -vn --upload-file "$chart" "https://nexus3.opendaylight.org/repository/packaging-helm-testing/"
36 echo " * release build, pushing to https://nexus3.opendaylight.org/repository/packaging-helm-release/"
37 curl -n --upload-file "$chart" "https://nexus3.opendaylight.org/repository/packaging-helm-release/"
40 echo "You must set BUILD_TYPE to one of (snapshot, staging, release)."
45 echo "*** release process finished"