Can somebody explain me how I can access the variable build from this matrix job setup?
parameters:
# job ---
...
configurations: [Release, Debug]
...
jobs:
- job: nightly
displayName: Nightly
strategy:
matrix:
${{ each configuration in parameters.configurations }}:
${{ configuration }}:
build: ${{ configuration }} # !PARAMETER/VARIABLE FOR JOB SET HERE!
${{ if ne(configuration, 'Release') }}:
dependsOn: Release
pool:
vmImage: ${{ parameters.image }}
timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
steps:
- powershell: Write-Host ${{ parameters.build }}
displayName: 'Write Configuration: ${{ parameters.build }}'
The jobs powershell task is showing Write Configuration: so the variable is null?