I am currently building a multibranch pipeline. I am trying to build a docker image and tagging it with the branch name which will always be "feature/XXX-111". However, when i get the branch name using the $branch_name env variable the docker build with tag -t command doesnt like the "/" in the "feature/XXX-111" branch name. So i was wondering if it was possible to only get the "XXX-111" part of the branch name and dropping the "feature/". Any help will be appreciated.
Thanks!