title: Azure DevOps multistage pipeline YAML: how to checkout multiple repos?
body: <p>My Azure DevOps pipeline uses yaml templates from two different repos, which is configured as following. </p>
  
  <ol>
  <li>There is an application repository which has deployable application and one yaml file - the pipeline's "root" template</li>
  <li>Templates Repository. Root template calls other templates and stages from the Templates repository. Then templates from this repository call other templates and scripts (from the same repository)</li>
  </ol>
  
  <p>Templates repository is referenced as a resource in the root template. I didn't find a way to checkout the templates repo just once and then use templates and scripts across all pipeline stages. For now I have to clone the templates repo manually in each stage where I need to use additional templates or scripts. At the end of each stage Azure Devops clears the cloned repo. Is there a simple way to checkout templates repo just once, or somehow else reference its resources from sub-stages?</p>