blob: 05ec1ad4a35c059e23ef139663fb43ae52b914bd [file] [log] [blame]
Zack Williamsbe542312022-06-23 21:51:32 -07001#!/usr/bin/env bash
2
Joey Armstrong518f3572024-02-11 07:56:25 -05003# Copyright 2020-2024 Open Networking Foundation (ONF) and the ONF Contributors
Zack Williamsbe542312022-06-23 21:51:32 -07004# SPDX-License-Identifier: Apache-2.0
5
6set -eu -o pipefail
7
8export OLD_REPO_DIR="cord-charts-repo"
9
10# Setup helm and external repos
Joey Armstrong46bfeea2023-07-31 10:39:25 -040011cat <<EOM
12
13** -----------------------------------------------------------------------
14** Configure helm and external repos
15** -----------------------------------------------------------------------
16EOM
17
Zack Williamsbe542312022-06-23 21:51:32 -070018helm repo add stable https://charts.helm.sh/stable
19helm repo add rook-release https://charts.rook.io/release
20helm repo add cord https://charts.opencord.org
21
Joey Armstrong46bfeea2023-07-31 10:39:25 -040022## Clone tool chain
Zack Williamsbe542312022-06-23 21:51:32 -070023git clone ssh://jenkins@gerrit.opencord.org:29418/helm-repo-tools.git
24./helm-repo-tools/helmlint.sh clean
25echo "*.lock" >> .gitignore
26
27# Specify the remote branch to compare against
28export COMPARISON_BRANCH="origin/$GERRIT_BRANCH"
Joey Armstrong46bfeea2023-07-31 10:39:25 -040029./helm-repo-tools/chart_version_check.sh # [TODO] make lint-chart
Zack Williamsbe542312022-06-23 21:51:32 -070030
31# Configure git
32git config --global user.email "do-not-reply@opennetworking.org"
33git config --global user.name "Jenkins"
34
35# Check for chart version conflicts by building the repo (don't upload)
36git clone "ssh://jenkins@gerrit.opencord.org:29418/$OLD_REPO_DIR.git"
Joey Armstrong46bfeea2023-07-31 10:39:25 -040037
38./helm-repo-tools/helmrepo.sh # [TODO] make ???
39
40# [EOF]