-
Improvement
-
Resolution: Fixed
-
Major
-
None
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.
- is blocking
-
JENKINS-30744 multibranch issues if branch contains /
- Closed
- is related to
-
JENKINS-24141 SCM with non-AbstractProject, revisited
- Closed
-
JENKINS-47226 Provide easy access to git branch name in (single branch) Pipeline build
- Open
-
JENKINS-32244 Environment variable for current branch
- Resolved
- links to