git-plugin icon indicating copy to clipboard operation
git-plugin copied to clipboard

[JENKINS-56107] GIT_BRANCH sometimes is not populated

Open jenkins-infra-bot opened this issue 6 years ago • 1 comments

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)

jenkins-infra-bot avatar Feb 12 '19 19:02 jenkins-infra-bot

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.

jenkins-infra-bot avatar Feb 16 '19 16:02 jenkins-infra-bot