-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
When checking out a branch and then merging another branch into the branch, the original branch is lost.
Configure the job to checkout origin/develop. Add a merge before build to merge origin/master into the workspace. This causes git-plugin to checkout master and then merge develop into the workspace. The current branch is now master.
In the event that the original branch or commit needs to be passed to another job, this information is no longer available.
- is related to
-
JENKINS-21536 GIT_BRANCH should not change after merge
- Open