I'm refactoring a pipeline to use a stage as template so I don't have duplicate code in my test-publish build pipeline and release build pipeline. But I get the error which I commented in the following .yml
lines.
resources:
- repo: self
clean: true
trigger:
branches:
include:
- development
stages: # error on this line: unexpected value 'stages'
- template: build-job.yml
- stage: Publish
jobs:
- job: PublishClickOnce
steps:
- task: PublishSymbols@2
displayName: 'Publish symbols path'
inputs:
SearchPattern: '**\bin\**\*.pdb'
PublishSymbols: false
continueOnError: true
The example provided by Microsoft:
# File: azure-pipelines.yml trigger: - master pool: vmImage: 'ubuntu-latest' stages: - stage: Install jobs: - job: npminstall steps: - task: Npm@1 inputs: command: 'install' - template: templates/stages1.yml - template: templates/stages2.yml
I checked against the documentation but can't see anything wrong with it. Can you point out my mistake and what I should change?