Zack Williams | be54231 | 2022-06-23 21:51:32 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | # SPDX-FileCopyrightText: 2020-2022 Open Networking Foundation <info@opennetworking.org> |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | |
| 6 | set -eu -o pipefail |
| 7 | |
| 8 | export OLD_REPO_DIR="cord-charts-repo" |
| 9 | |
| 10 | # Setup helm and external repos |
| 11 | helm repo add stable https://charts.helm.sh/stable |
| 12 | helm repo add rook-release https://charts.rook.io/release |
| 13 | helm repo add cord https://charts.opencord.org |
| 14 | |
| 15 | git clone ssh://jenkins@gerrit.opencord.org:29418/helm-repo-tools.git |
| 16 | ./helm-repo-tools/helmlint.sh clean |
| 17 | echo "*.lock" >> .gitignore |
| 18 | |
| 19 | # Specify the remote branch to compare against |
| 20 | export COMPARISON_BRANCH="origin/$GERRIT_BRANCH" |
| 21 | ./helm-repo-tools/chart_version_check.sh |
| 22 | |
| 23 | # Configure git |
| 24 | git config --global user.email "do-not-reply@opennetworking.org" |
| 25 | git config --global user.name "Jenkins" |
| 26 | |
| 27 | # Check for chart version conflicts by building the repo (don't upload) |
| 28 | git clone "ssh://jenkins@gerrit.opencord.org:29418/$OLD_REPO_DIR.git" |
| 29 | ./helm-repo-tools/helmrepo.sh |