Looking to try and get some help figuring out a solution to what seems like a simple task. I am trying to develop some extend YAML templates for security within our ADO pipelines but first I have to get passed this error I am experiencing.
The error being returned by ADO when I try to validate or run the pipeline is "/ADO_Stage_Restrictions_Dev.yml@AdoRestrictions (Line: 7, Col: 3): Unexpected value 'job'".
Working Extend Template YAMLThis template validates and executes without issue, which to me means I am successfully passing the stages object into the extends template
parameters:
- name: stageObjs
type: stageList
default: []
stages:
- ${{ each stage in parameters.stageObjs }}:
${{ stage }}
Broken Extend Template YAMLThis template does not validate and throws the 'Unexpected value job' exception. based on the stage schema I would assume that I would be able to loop the jobs property within the stage.
parameters:
- name: stageObjs
type: stageList
default: []
stages:
- ${{ each stage in parameters.stageObjs }}:
- ${{ each job in stage.jobs }}:
${{ job }}
Hello All,
Looking to try and get some help figuring out a solution to what seems like a simple task. I am trying to develop some extend YAML templates for security within our ADO pipelines but first I have to get passed this error I am experiencing.
The error being returned by ADO when I try to validate or run the pipeline is
"/ADO_Stage_Restrictions_Dev.yml@AdoRestrictions (Line: 7, Col: 3): Unexpected value 'job'"
.Working Extend Template YAML This template validates and executes without issue, which to me means I am successfully passing the stages object into the extends template
Broken Extend Template YAML This template does not validate and throws the 'Unexpected value job' exception. based on the stage schema I would assume that I would be able to loop the jobs property within the stage.
Build YAML The main yaml file that extends stages