title: Jenkins Git Branch Selection with Fallback
body: <p>In my project i have a <a href="http://nvie.com/posts/a-successful-git-branching-model/">GitFlow</a> style Repository.</p>
  
  <p>How can I make Jenkins do the following:    (XXXX=Release No) </p>
  
  <ol>
  <li>Build the Release-XXXX branch</li>
  <li>If a release branch does not exist build the Master branch.</li>
  </ol>
  
  <p>I understand I can put branches in priority order using the <a href="https://wiki.jenkins-ci.org/display/JENKINS/Git+Chooser+Alternative+Plugin">git-chooser-alternative </a> plugin but I don't know how to select branches containing the word Release-</p>