Skip to content

Commit 612506a

Browse files
[DSC-2193] Fixes branch_name in bitbucket-pipeline for prelimiary-operation
1 parent bf3dd09 commit 612506a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bitbucket-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ definitions:
1212
image: alpine/git:latest
1313
script:
1414
- export HASH_COMMIT=${BITBUCKET_COMMIT:0:8}
15-
- export BRANCH_NAME=$(echo "$BITBUCKET_BRANCH" | awk -F'/' '{if(NF==1)val=$1; else if(NF==2)val=$1"-"$2; else if(NF==3)val=$2; else if(NF==4)val=$2"-"$3; gsub(/_/, "-", val); print tolower(val)}')
15+
- export BRANCH_NAME=$(echo "$BITBUCKET_BRANCH" | awk -F'/' '{if(NF==1)val=$1; else if(NF==2)val=$1"-"$2; else if(NF==3)val=$2; else if(NF==4)val=$2"-"$3; print tolower(val)}')
1616
- echo "Using commit hash $HASH_COMMIT"
1717
- git config --global user.email "${BB_USER}"
1818
- git config --global user.name "${BB_EMAIL}"

0 commit comments

Comments
 (0)