title: Only get the latest build from a branch on deployment
body: <p>When doing a <code>deployment</code> job with a CI trigger and <code>resources.pipelines</code> that are defined like</p>
  
  <pre><code>resources:
    pipelines:
      - pipeline: thumbnailGenerator
        project: myServices
        source: thumbnail-generator CI
        trigger:
          branches:
            include:
              - master
  </code></pre>
  
  <p>The <code>deployment</code> job downloads the latest build of the pipeline (which may be a PR) rather than the last build from <code>master</code>.  Is there a way of making it only download the specific branches when doing a CI build?</p>
  
  <p>I haven't explored it yet, but I am thinking based on this behaviour it will always do the latest builds for all the pipelines regardless.</p>