title: Select Git branch for TeamCity Build Configuration
body: <p>I want to accomplish following  via teamcity in my CI box. </p>
  
  <pre><code>Master branch commit : Build and Release
  Beta branch commit: Build and Release to Crashlytics
  All other commits to any other branch: Build
  </code></pre>
  
  <p>(side note since most of our development branches may or may not contain a prefix, it makes it difficult to use "feature-*" branch naming)</p>
  
  <p>Following this question <a href="https://stackoverflow.com/questions/23415704/select-git-branch-for-teamcity-build">Select Git branch for TeamCity Build</a></p>
  
  <p>I have created a Configuration Parameters in my project settings</p>
  
  <p><a href="https://i.stack.imgur.com/FWJRa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FWJRa.png" alt="enter image description here"></a></p>
  
  <p>and then </p>
  
  <p>my VCS root settings</p>
  
  <p><a href="https://i.stack.imgur.com/IRBLd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IRBLd.png" alt="enter image description here"></a></p>
  
  <p>Then I created a build template</p>
  
  <p><a href="https://i.stack.imgur.com/C3hnK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C3hnK.png" alt="enter image description here"></a></p>
  
  <p>When I created builds I made sure branch name is correct</p>
  
  <p><a href="https://i.stack.imgur.com/FdzMg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FdzMg.png" alt="enter image description here"></a></p>
  
  <p>I have also tried to edit Triggers </p>
  
  <p><a href="https://i.stack.imgur.com/hA2vO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hA2vO.png" alt="enter image description here"></a></p>
  
  <p>How ever this is not working because when I push a commit to Beta branch</p>
  
  <p>I think because of <code>ref/heads/*</code> default build is running all the branches</p>
  
  <p>and Beta and Master displays "Pending"</p>
  
  <p><a href="https://i.stack.imgur.com/hEPVM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hEPVM.png" alt="enter image description here"></a></p>
  
  <p>How can I correct this? </p>