[JENKINS-56107] GIT_BRANCH sometimes is not populated
For some reason some builds (maven job) doesn't populate `${GIT_BRANCH}`
I haven't found any pattern to this - my only suspicion would be "build strategy" that sometimes selects non-master branch (solution to problem with simply building all branches from https://issues.jenkins-ci.org/browse/JENKINS-11337)
Originally reported by
wojtek, imported from: GIT_BRANCH sometimes is not populated
- status: Open
- priority: Minor
- component(s): git-plugin
- label(s): git, plugin
- resolution: Unresolved
- votes: 0
- watchers: 2
- imported: 2025-12-02
Raw content of original issue
For some reason some builds (maven job) doesn't populate `${GIT_BRANCH}` I haven't found any pattern to this - my only suspicion would be "build strategy" that sometimes selects non-master branch (solution to problem with simply building all branches from https://issues.jenkins-ci.org/browse/JENKINS-11337)
markewaite:
- Original comment link
Raw content of original comment:
Please provide steps that will duplicate the problem.
Please provide steps that will duplicate the problem.