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 1c73767
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ci/autoscaler/set-pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ function main(){
SCRIPT_RELATIVE_DIR=$(dirname "${BASH_SOURCE[0]}")
pushd "${SCRIPT_RELATIVE_DIR}" > /dev/null
CURRENT_BRANCH="$(git symbolic-ref --short HEAD)"
CURRENT_BRANCH="$(echo "$CURRENT_BRANCH"| sed 's/\//-/g')" # Concourse can't handle slashes in pipeline names

if [[ "$CURRENT_BRANCH" == "main" ]];then
export PIPELINE_NAME="app-autoscaler-release"
Expand Down

0 comments on commit 1c73767

Please sign in to comment.