Thanks sbandarupalli
I do have some examples actually the process would just call the stage template then the stage template is a collection of call to job templates and each job template calls a collection of task templates. It's really a fan out approach.
Here is one I have for a Data Factory CI/CD template:
parameters:
- name: environmentObjects
type: object
default:
- environmentName: 'dev'
regionAbrvs: ['eus']
locations: ['eastus']
- environmentName: 'tst'
regionAbrvs: ['eus']
locations: ['eastus']
- name: serviceName
type: string
default: 'adfdemo'
stages:
- template: stages/adf_build_stage.yml@templates
parameters:
serviceName: ${{ parameters.serviceName }}
- ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/main')}}:
- template: stages/adf_deploy_stage.yml@templates
parameters:
environmentObjects: ${{ parameters.environmentObjects }}
serviceName: ${{ parameters.serviceName }}
The full file can be found at adf_pipelines_yaml_ci_cd