From 044e4c5736152e359c763e8d8834ecaccccb4166 Mon Sep 17 00:00:00 2001 From: Jonathan Pobst Date: Thu, 2 Dec 2021 16:04:36 -0600 Subject: [PATCH 1/2] [ci] Ignore publishing JUnit tests on .NET Framework - Windows --- build-tools/automation/templates/publish-test-results.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-tools/automation/templates/publish-test-results.yaml b/build-tools/automation/templates/publish-test-results.yaml index 782c367e2..143755177 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('$(Agent.OS)', 'Windows_NT') inputs: testResultsFormat: JUnit testResultsFiles: '**/TEST-*.xml' From 99f057e76a4e4677ec27546093fc9a1e1c7005cc Mon Sep 17 00:00:00 2001 From: Jonathan Pobst Date: Thu, 2 Dec 2021 16:19:01 -0600 Subject: [PATCH 2/2] Update publish-test-results.yaml --- build-tools/automation/templates/publish-test-results.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-tools/automation/templates/publish-test-results.yaml b/build-tools/automation/templates/publish-test-results.yaml index 143755177..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_NT') + condition: ne(variables['agent.os'], 'Windows_NT') inputs: testResultsFormat: JUnit testResultsFiles: '**/TEST-*.xml'