[FIXED JENKINS-17417] Expand Branch Specifier

Expand Branch Specifier with build environment variables.

Note that the Branch Specifier is not expanded for repository polling
because no build environment is available at that time.
Merge pull request #183 from hrubi/expand-branch-spec

[FIXED JENKINS-17417] Expand Branch Specifier