Skip to content

Commit

Permalink
fix pipeline creation when git-branch contains slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
geigerj0 committed Jun 4, 2024
1 parent 0b19997 commit 907e134
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci/autoscaler/set-pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 907e134

Please sign in to comment.