How can I add send several dynamic parameters to a template with azure devops yaml?
- pwsh: |
$affected = npm run nx affected:apps -- --base=origin/master --head=HEAD | grep -E '( - )(\w|-|\d|_)+'
Write-Host "##vso[task.setvariable variable=affected;]$affected"
- template: build.yml
parameters:
affected: $env:AFFECTED
I think $affected
is a list of string, here is the log when Write-Host "apps are ${affected}"
:
Looks like affected: $env:AFFECTED``as parameters doesn't work. Here is the error :
Mapping values are not allowed in this context`
Thanks