From d78728212f99038b8515f656fe6094603f278c80 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Thu, 7 Jul 2022 20:09:31 +0200 Subject: [PATCH] chore(helm): fail if branch/commit doesn't exist Signed-off-by: rjshrjndrn --- scripts/helmcharts/openreplay/templates/job.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helmcharts/openreplay/templates/job.yaml b/scripts/helmcharts/openreplay/templates/job.yaml index 93610899c..8925b83d8 100644 --- a/scripts/helmcharts/openreplay/templates/job.yaml +++ b/scripts/helmcharts/openreplay/templates/job.yaml @@ -42,7 +42,7 @@ spec: mkdir -p /opt/openreplay/openreplay && cd /opt/openreplay/openreplay git clone https://github.com/openreplay/openreplay . ls /opt/openreplay/openreplay - git checkout {{ default .Chart.AppVersion .Values.dbMigrationUpstreamBranch }} + git checkout {{ default .Chart.AppVersion .Values.dbMigrationUpstreamBranch }} || exit 10 # Checking variable is empty. Shell independant method. if [ "x$ENTERPRISE_EDITION_LICENSE" != "x" ]; then