I am trying to learn azure devops yaml and uses template.
Here is my pipeline yaml (basically wants to set a parameter and call a template file):
trigger:
branches:
include:
- master
paths:
exclude:
- YAML/*
extends:
template: azure-pipeline.yaml
parameters:
MergeSprintToMaster: false
Here is my template file azure-pipeline.yaml, which contains all commons things:
parameters:
- name: MergeSprintToMaster # name of the parameter; required
type: boolean # data type of the parameter; required
default: false
pool:
name: Azure Pipelines
vmImage: 'windows-latest'
demands:
- msbuild
- visualstudio
- vstest
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: AzureCLI@2
I got an validation error saying /YAML/azure-pipeline.yaml (Line: 11, Col: 1): Unexpected value 'pool'
What is wrong with the way I am trying to use yaml?