jenkinsci / jenkinsci/git-plugin
[JENKINS-20446] Git Plugin 2.0 has changed contents of GIT_BRANCH
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
I've configured a job to clone a repository and use the "develop" branch. With the 1.5 plugin, GIT_PLUGIN was set to "develop". After upgrading to 2.0, GIT_BRANCH is now set to "origin/develop", which breaks my scripts which were relying on the previous value.
---
Originally reported by davidschmitt, imported from: Git Plugin 2.0 has changed contents of GIT_BRANCH
Raw content of original issue
I've configured a job to clone a repository and use the "develop" branch. With the 1.5 plugin, GIT_PLUGIN was set to "develop". After upgrading to 2.0, GIT_BRANCH is now set to "origin/develop", which breaks my scripts which were relying on the previous value.
- environment:
Jenkins 1.537; Git Plugin 2.0; Git Client Plugin 1.4.6; SCM API Plugin 0.2
Contributor guide
Assessment
This issue has not been assessed yet.