For example, consider the following template (named xyz.yml, for example):
parameters:
projects: ['p1', 'p2', 'p3']
steps:
- ${{ each project in parameters.projects }}:
- task: VSBuild@1
displayName: Build ${{ project }}
inputs:
solution: ${{ project }}.sln
...
Now, suppose I have the following azure-pipelines.yml file:
...
steps:
...
- template: xyz.yml
parameters:
projects: ???
...
How can I feed the projects
template parameter from a build variable? Suppose at the time of the build I want to request building just p1 and p3. How can I do it?