Fix Test Results tab in github UI (#4607)
authorMike McLaughlin <mikem@microsoft.com>
Mon, 15 Apr 2024 22:55:49 +0000 (15:55 -0700)
committerGitHub <noreply@github.com>
Mon, 15 Apr 2024 22:55:49 +0000 (15:55 -0700)
eng/pipelines/build.yml

index 4644e3c53812d6ae5086e244634f5d2864445512..42bb46bcd2f3ffc3bf93c491cbeef8252b9901b1 100644 (file)
@@ -281,13 +281,13 @@ jobs:
           continueOnError: true
           condition: always()
 
-      - ${{ if and(eq(parameters.buildOnly, 'false'), eq(parameters.isCodeQLRun, 'false')) }}:
+      - ${{ if and(ne(parameters.buildOnly, 'true'), ne(parameters.isCodeQLRun, 'true')) }}:
         # Publish test results to Azure Pipelines
         - task: PublishTestResults@2
           inputs:
             testResultsFormat: xUnit
             testResultsFiles: '**/*.xml'
-            searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/${{ config.configuration }}'
+            searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults'
             testRunTitle: 'Tests $(_PhaseName)'
             failTaskOnFailedTests: true
             publishRunAttachments: true