jenkinsci / jenkinsci/git-plugin
[JENKINS-56107] GIT_BRANCH sometimes is not populated
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
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
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)
Contributor guide
Assessment
This issue has not been assessed yet.