我正在重构管道以使用阶段作为模板,因此我的测试发布构建管道和发布构建管道中没有重复的代码。但我得到了我在以下几.yml
行中评论的错误。
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
微软提供的例子:
# 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
我检查了文档,但看不出有什么问题。你能指出我的错误以及我应该改变什么吗?