Popular maven plugins designed to give you access to the git branch name are ineffective when using the workflow Multibranch Plugin.
- The JGit Build Number plugin at https://github.com/alx3apps/jgit-buildnumber falls back to coimmit id because GIT_BRANCH is not getting populated
- The Git Commit ID Maven Plugin from https://github.com/ktoso/maven-git-commit-id-plugin also fails to extract the branch (unsure why)
For multbranch builds it's reasonable to expect use cases where the branch info is use to augment artifact names and manifest entries so people can easily distinguish branch built artifacts from one.
Would be nice if the DSL just made this state available - but populating the env would be a nice start.