Branch expansion

as requested here is the split change. However, I cannot build locally with the checkstyle plugin enabled since its giving me all sorts of weird issues.

JENKINS-17913 asked for being able to expand variables for certain
configuration properties I have added expansion for the specified branch
which allows users to choose a branch to checkout and pass it in as a
variable