title: Bamboo - How to build latest revision after merging code in the same build job
body: <p>I am trying to build the latest revision after the code is merged to master. But Bamoo is building the previous revision which is merged in the previous build. Below is the process:</p>
  <ol>
  <li>Developers work in the their respective branches --&gt; PR is raised --&gt; code is merged to &quot;Development&quot; branch</li>
  <li>Dev build is triggered from &quot;Development&quot; branch (till here it is fine).</li>
  </ol>
  <p>For QA build, below are the tasks:</p>
  <ol>
  <li>Code is sync to master (Here code is merged to &quot;master&quot; from &quot;development&quot; using command line script - This works fine)</li>
  <li>Source Code Checkout (using <a href="https://confluence.atlassian.com/bamboo0700/checking-out-code-1014682032.html" rel="nofollow noreferrer">task</a>)</li>
  <li>Restore packages --&gt; npm install --&gt; other build tasks</li>
  </ol>
  <p>Once the code is merged to master using #1, I am expecting the latest revision to be checked out in &quot;Source code checkout&quot; task. But it is building the previous revision which is merged during the last build. How to get the build directory to be updated with latest revision once the code is merged to master using the same build job?</p>
  <p>I am new to Bamboo. Also, please point out if this questioned has been answered previously. Thanks</p>