title: How to force TeamCity to build every commit into GIt?
body: <p>Right now I'm a happy user of TeamCity + Maven + Git.
  I have a one build like <code>mvn deploy</code> which should triggered by every commit into Git. All tests are run and everything is fine. =)</p>
  
  <p>But this scheme has a problem, after I run <code>mvn release:prepeare</code> on my machine it creates two commits (with versions, say, <code>1.1</code> and <code>1.2-SNAPSHOT</code>) in central Git repo one of which is tagged with <code>1.1</code>.
  Because TeamCity checks for latest version every N seconds it actually builds only the latest one with version <code>1.2-SNAPSHOT</code>. And this way build <code>1.1</code> actually never gets into Maven repo. Security policies does not allow me to run <code>mvn deploy</code> from my own machine and Maven repo deploy could only be done from TeamCity machine.</p>
  
  <p>Thus I want to run both builds against both commits to repo. As far as I know this is impossible with only one build configured in TeamCity.</p>
  
  <p>Now I'm using workaround: there is additional build that builds only "release" commits, which is triggered with triggers with commit regex.
  Another possible workaround is using additional build that is built against specialized "release" branch.</p>
  
  <p>But, I do not want to have workarounds and would like to force TeamCity to run build against every commit into Git. This will also help me with understanding of failed tests.</p>