I am generating output variables in matrix job A:
- job: A
strategy:
matrix:
nonprod:
environment: test
prod:
environment: prod
steps:
- pwsh: Write-Host "##vso[task.setvariable variable=Hostname;isOutput=true]'StuffFrom$(environment)'"
name: OutputVariable
Now I need to access them in subsequent matrix strategy in respective jobs:
- job: B
dependsOn: A
strategy:
matrix:
nonprod:
environment: test
prod:
environment: prod
steps:
- pwsh: Write-Host How can I use output variables from job A in here?