title: How to do this Jenkins conditional build?
body: <p>We are a .net shop so use Jenkins MSBuild plugin to do the build. For each project we have a development and release build, but I notice their only differences are:</p>
  
  <ol>
  <li>/p:Configuration=Debug or /p:Configuration=Release in MSBuild</li>
  <li>Release build has an extra copy step at the end</li>
  </ol>
  
  <p>So I am thinking if I can merge them together into one build, and change the above configurations in the build based on the git branch names. I can get the git branch name like this %GIT_BRANCH%= origin/development, but I can't figure out:</p>
  
  <ol>
  <li>How to construct a conditional step to use the above %GIT_BRANCH%. </li>
  <li>How to use the above %GIT_BRANCH% to change the /p:Configuration=?</li>
  </ol>
  
  <p>Can anyone shed me some lights?</p>