Fix: bashisms - step 2
[releng/builder.git] / jjb / packaging / helm-repo-init.sh
1 #!/bin/sh
2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2017 The Linux Foundation and others.
5 #
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
12 # Ensure we fail the job if any steps fail
13 set -e -o pipefail
14
15 mkdir -p ".chartstorage"
16
17 chartmuseum --port=6464 --storage="local" --storage-local-rootdir=".chartstorage" >/dev/null 2>&1 &
18 . helm.prop
19 $HELM_BIN plugin install --version v0.9.0 https://github.com/chartmuseum/helm-push.git || true
20 $HELM_BIN repo add local http://localhost:6464
21 $HELM_BIN repo add opendaylight http://localhost:6464