title: how to pass project parameter as branch name to build in Jenkins
body: <p>I am wondering is there any way we can pass the value of project parameter as the Git branch to build from.</p>
  
  <p>Below is what I am trying to do:</p>
  
  <ol>
  <li>Create a Jenkins pipeline project with a build parameter:</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/emMCT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/emMCT.png" alt="enter image description here"></a></p>
  
  <ol start="2">
  <li>Then I tried to using the project parameter to pass it on (Branches to build)</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/jmEUd.png" rel="noreferrer"><img src="https://i.stack.imgur.com/jmEUd.png" alt="enter image description here"></a></p>
  
  <p>However the branch_name variable is not resolved from the project parameter.</p>
  
  <p>I could do manually change branch name for every build, but it is far from ideal.</p>
  
  <p>Appreciate for any idea?</p>