[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.