DABSquared/gitlab-plugin — pull request #32 by kasper-f (2014-12-01 14:20:26+00:00)
Title: Use data from git_plugin to determine branch

When jobs are build on a slave the ParameterActions is null when checked. And then the build will not be included in the check for recent branch state

Instead of looking at ParameterActions for branch name the preferred way to determine if a build contains a specific branch is to use the git-plugin BuildData object.

This fix will start looking at the branches specified in the git-plugin BuildData object and fallback to use the old method if for some reason the BuildData is not available?

This should fix the jira issue at jenkins https://issues.jenkins-ci.org/browse/JENKINS-25844