79356448

Date: 2025-01-14 21:40:49
Score: 1.5
Natty:
Report link

To achieve that you need to use ${{ variables.vmImage }} because it is set at compilation time. More info https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch

jobs:
- job: RunTests
  displayName: 'Run Tests on ${{ variables.vmImage }}'
  timeoutInMinutes: 60
  strategy:
    matrix:
      windows:
        vmImage: 'windows-latest'
      mac:
        vmImage: 'macos-latest'
  pool:
    vmImage: $(vmImage)
  steps:

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: NickS