file: azure-pipelines.yml
1. parameters:
2. - name: deployTo
3. displayName: Deployment Environments
4. type: stringList
5. values:
6. - development
7. - test
8. - production
9. default: []
10.
11. stages:
12. - ${{ each env in parameters.deployTo }}:
13. - stage: ${{ env }}
14. jobs:
15. # rest of code
line 12 error:
Property ${{ each env in parameters.deployTo }} is not allowed.yaml-schema: Azure Pipelines(513)
the pipeline executes correctly.
schema must be therefore incorrect.
schema should allow for a loop just after stages if the pipeline is correctly executed by Azure DevOps.
fix the schema.
file:
azure-pipelines.ymlline 12 error:
Property ${{ each env in parameters.deployTo }} is not allowed.yaml-schema: Azure Pipelines(513)the pipeline executes correctly.
schema must be therefore incorrect.
schema should allow for a loop just after
stagesif the pipeline is correctly executed by Azure DevOps.fix the schema.