Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure DevOps resources repo: self

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

like image 429
westandy Avatar asked Dec 19 '18 22:12

westandy


2 Answers

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

like image 146
Daniel Mann Avatar answered Sep 18 '22 06:09

Daniel Mann


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
like image 21
westandy Avatar answered Sep 17 '22 06:09

westandy