title: azure devops yaml pipeline with template does not checkout referenced repository
body: <p>I am using the new Azure DevOps Yaml multi stage pipeline functionality</p>
  
  <p>I've got an Azure DevOps yaml pipeline file for which I want to use templates.  I would like the pipeline to checkout self and another repository.</p>
  
  <p>For some reason, <strong>self</strong> repo has been checked out when this runs, but the repo: pipelines is not being checked out and therefore the job fails (because some of the file dependencies it requires are not there.</p>
  
  <p>Here is an excerpt from my template:</p>
  
  <pre class="lang-html prettyprint-override"><code>resources:
    repositories:
    - repository: self
    - repository: pipelines
      name: vstsproject/pipelines
      type: git
      source: pipelines
  
  variables:
    # Container registry service connection established during pipeline creation
    imageRepository: 'vstsprojectweb'
    dockerfilePath: '$(Build.SourcesDirectory)/src/Dockerfile.CI'
    BuildConfiguration: 'Release'
    tag: '$(Build.BuildId)'  
  
  stages:
  
  - stage: 'PRD'
    jobs:
    - template: update-connection-string-db.yml@pipelines
      parameters:
        resourceGroup: 'application-DEV'
        DBSearchString: '###dbservername###'  
  </code></pre>
  
  <p>What is it that I am doing wrong?</p>
  
  <p>I have referred to this <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&amp;tabs=schema#repository-resource" rel="nofollow noreferrer">microsoft documentation</a>.</p>