You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have an azure pipeline with parameters and I want to get a variable value filled by concatenating the parameter's name but when I tried to do that using YAML loop its threw error
parameters:
- name: applications_module
displayName: Applications
type: boolean
default: 'false'
values: []
- name: management
displayName: Management
type: boolean
default: 'false'
values: []
- name: It
displayName: IT_module
type: boolean
default: 'false'
values: []
variables:
- name: allValues
${{each item in parameters}}:
${{if contains(item.name, '_module')}}:
value: ${{ allValues = item.name }}
# here I want to concatenate all the parameters names that have name _module but this statement is throwing an error
Unexpected symbol: '=item'
is the Error
so can any one help me how to concatenate all the parameters as comma separated into a single variable
i tried all ways and came back here :(
The text was updated successfully, but these errors were encountered:
i have an azure pipeline with parameters and I want to get a variable value filled by concatenating the parameter's name but when I tried to do that using YAML loop its threw error
Unexpected symbol: '=item'
is the Error
so can any one help me how to concatenate all the parameters as comma separated into a single variable
i tried all ways and came back here :(
The text was updated successfully, but these errors were encountered: