I am running my build and release pipeline in TFS/AZureDevopsServer-2019, below is the YAML used in azure-pipeline.yml
When the pipeline runs it does not generate Analytics
How ever as per " https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-test-results?view=azure-devops&tabs=trx%2Cyaml " i have added below task in my pipeline
- task: Maven@3
inputs:
mavenPomFile: '$(System.DefaultWorkingDirectory)/maven/pom.xml'
goals: package
mavenAuthenticateFeed: true
sonarQubeRunAnalysis: true
publishJUnitResults: true
sqMavenPluginVersionChoice: 'latest'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
searchFolder: '$(System.DefaultWorkingDirectory)'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
codeCoverageToolOption: JaCoCo
Pipeline result
2021-03-30T17:11:52.9179560Z ##[warning]No test result files matching **/TEST-*.xml were found.