Teamcity build on every git commit vs build on pull request
<p>We are setting up teamcity for our project which uses git. We have this debate on if we should trigger a build on every commit or on every pull request.</p>

<p>If i push a branch say A, and we have configured build on pull request on master then will the build be triggered on how the merged code will appear or it will just build the branch ?</p>

<p>Lets imagine that we have configures our teamcity to build every pull request</p>

<p>Now Lets say i have a branch master, developer A checksout a branch ftb_A. Creates a new test case and commits. Developer A code is not yet merged to master. Develope B creates a new branch ftb_B he also creates new test case. Now developer A pushes the branch and raises a pull request so build runs the test case added by develope A runs. Now pull request from developer A is merged and the newly created tesr case is available in master now. </p>

<p>Now developer B also pushes his branch, but he has not rebased his branch i.e. the test case which was added by developer A is not available in brach ftb_B. Now developer B raises a pull request. So build is triggered. Now my question is when the build is triggered for pull request raised by developer B will the test case added by developer A in master will run or not</p>