7
votes

Can someone please explain or provide documentation for

resources:
  - repo: self

in the azure-pipelines.yml files? I cannot find any documentation for it.

Here's the official Azure docs: https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema

2

2 Answers

6
votes

"self" means "the repository that the YAML file is in".

2
votes

Daniel Mann answered this question. It turns out, I did not need the repo: self part. This part is what I actually put in my YAML azure-pipelines.yml file and it is working for us. Thanks again!

trigger:
  branches:
    include:
      - master
      - features/*
      - bugs/*
    paths:
      exclude:
        - README.md

jobs:
   - template: path/to/backendRepo/azure-pipelines.yml
     parameters:
       componentName: BackEndStuff
   - template: path/to/frontendRepo/azure-pipelines.yml
     parameters:
       componentName: FrontEndStuff