From 907e134645d004d5e1e60824cf0e973cacd7f7a2 Mon Sep 17 00:00:00 2001 From: geigerj0 <112163019+geigerj0@users.noreply.github.com> Date: Tue, 4 Jun 2024 13:12:31 +0200 Subject: [PATCH] fix pipeline creation when git-branch contains slashes --- ci/autoscaler/set-pipeline.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/autoscaler/set-pipeline.sh b/ci/autoscaler/set-pipeline.sh index 3142b37252..e793fa88bb 100755 --- a/ci/autoscaler/set-pipeline.sh +++ b/ci/autoscaler/set-pipeline.sh @@ -75,7 +75,10 @@ function main(){ export PIPELINE_NAME="app-autoscaler-release" set_pipeline $PIPELINE_NAME else - export PIPELINE_NAME="app-autoscaler-release-${CURRENT_BRANCH}" + local current_branch_without_slashes + current_branch_without_slashes="$(echo "${CURRENT_BRANCH}" | sed 's/\//-/g')" # Concourse can't handle slashes in pipeline names + + export PIPELINE_NAME="app-autoscaler-release-${current_branch_without_slashes}" set_pipeline "$PIPELINE_NAME" pause_jobs "$PIPELINE_NAME" unpause_job "$PIPELINE_NAME/set-pipeline"