diff --git a/build-tools/automation/templates/publish-test-results.yaml b/build-tools/automation/templates/publish-test-results.yaml index 782c367e2..505dece61 100644 --- a/build-tools/automation/templates/publish-test-results.yaml +++ b/build-tools/automation/templates/publish-test-results.yaml @@ -9,7 +9,7 @@ steps: - task: PublishTestResults@2 displayName: Publish JUnit Test Results - condition: ne('$(Agent.OS)', 'Windows') + condition: ne(variables['agent.os'], 'Windows_NT') inputs: testResultsFormat: JUnit testResultsFiles: '**/TEST-*.xml'