I have a similar yaml with multiple jobs.template definitions and i would like to add a manual approval step in between the – template steps. Is there an easy way to do it or do i need to redo the entire yaml?
# File: jobs/build.yml
parameters:
name: ''
pool: ''
sign: false
jobs:
- job: ${{ parameters.name }}
pool: ${{ parameters.pool }}
steps:
- script: npm install
- script: npm test
- ${{ if eq(parameters.sign, 'true') }}:
- script: sign
YAML
Copy
# File: azure-pipelines.yml
jobs:
- template: jobs/build.yml # Template reference
parameters:
name: macOS
pool:
vmImage: macOS-latest
- template: jobs/build.yml # Template reference
parameters:
name: Linux
pool:
vmImage: ubuntu-latest
- template: jobs/build.yml # Template reference
parameters:
name: Windows
pool:
vmImage: windows-latest
sign: true # Extra step on Windows only
I have already tried to add – task: ManualValidation@8 but it does not work as I get an error saying Unexpected value ‘task’
New contributor
mrhelpmeplease is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.