blob: e2f9e23c83d6815fc46425aa328974c9130ea56d [file] [log] [blame]
Zack Williamsbe542312022-06-23 21:51:32 -07001#!/usr/bin/env bash
2
3# SPDX-FileCopyrightText: 2020-2022 Open Networking Foundation <info@opennetworking.org>
4# 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
11helm repo add stable https://charts.helm.sh/stable
12helm repo add rook-release https://charts.rook.io/release
13helm repo add cord https://charts.opencord.org
14
15git clone ssh://jenkins@gerrit.opencord.org:29418/helm-repo-tools.git
16./helm-repo-tools/helmlint.sh clean
17echo "*.lock" >> .gitignore
18
19# Specify the remote branch to compare against
20export COMPARISON_BRANCH="origin/$GERRIT_BRANCH"
21./helm-repo-tools/chart_version_check.sh
22
23# Configure git
24git config --global user.email "do-not-reply@opennetworking.org"
25git config --global user.name "Jenkins"
26
27# Check for chart version conflicts by building the repo (don't upload)
28git clone "ssh://jenkins@gerrit.opencord.org:29418/$OLD_REPO_DIR.git"
29./helm-repo-tools/helmrepo.sh