I have a bitbucket pipeline where I want to retrieve some part of the branch name (the ticket name)
I basically get the branch name with :
- BRANCH_NAME="$(git rev-parse --abbrev-ref HEAD)"
Now the branch name is like
fix/DOM-123-my-ticket-info
I would like to basically do something like
- BRANCH_NAME="$(git rev-parse --abbrev-ref HEAD)"
- TICKET_NAME= // a way to retrieve DOM-123 from $BRANCH_NAME
Do you know how would this be possible ?
I haven"t find anything on how such a thing would be possible.