Skip to content

stages - Property ${{ each env in parameters.paramName }} is not allowed #665

Description

@mmcossu

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions