Please use ${{ parameter.Key }} -> ${{ parameter.Value }}
instead of ${{ parameters.Key }} -> ${{ parameters.Value }}
.
This works on my side:
parameters:
- name: param_1
type: string
default: a string value
- name: param_2
type: string
default: default
- name: param_3
type: number
default: 2
- name: param_4
type: boolean
default: true
steps:
- ${{ each parameter in parameters }}:
- script: echo '${{ parameter.Key }} -> ${{ parameter.Value }}'
Result:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…