我在 TFS/AZureDevopsServer-2019 中运行我的构建和发布管道,下面是 azure-pipeline.yml 中使用的 YAML
管道运行时不会生成分析
我如何按照“ https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-test-results?view=azure-devops&tabs=trx%2Cyaml ”添加了以下任务在我的管道中
- 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
管道结果
2021-03-30T17:11:52.9179560Z ##[warning]No test result files matching **/TEST-*.xml were found.