[ https://issues.jenkins-ci.org/browse/JENKINS-7554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160979#comment-160979 ]
Carsten Brandt commented on JENKINS-7554: ----------------------------------------- Had it working with 1.454, updated to 1.457 and it now fails... Whats the problem with setting GIT_BRANCH env variable to the branch currently beeing built while build step (exec shell, etc...) > GIT_BRANCH not set when multiple branches are selected for build > ---------------------------------------------------------------- > > Key: JENKINS-7554 > URL: https://issues.jenkins-ci.org/browse/JENKINS-7554 > Project: Jenkins > Issue Type: Bug > Components: git > Affects Versions: current > Environment: Windows 7 > Reporter: jadaks31 > Assignee: abayer > > When trying to identify what branch the current build are on i found that the > GIT_BRANCH environment variable is not set when more then a single branch is > selected to be built. > I have seen that getSingleBranch(build) returns null when that happens > GIT_BRANCH is not exposed to the build. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira