-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
Jenkins 1.460, git plugin 1.1.17
In a repository with multiple branches, Jenkins frequently builds a commit other than the head of the selected branch. For example, it builds HEAD^ from the master branch.
I am selecting the branch to build based on a parameter $BRANCH, which defaults to **, and the problem occurs with this value. If I set BRANCH to "origin/master" explicitly, then I get the latest commit as expected.