I do use PublishCodeCoverageResults@2 task in my Azure DevOps pipeline
- task: PublishCodeCoverageResults@2
inputs:
codeCoverageTool: 'JaCoCo'
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/target/site/jacoco-aggregate/**/jacoco.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/target/site/jacoco-aggregate/'
pathToSources: '$(System.DefaultWorkingDirectory)/**/src/main/java/'
failIfCoverageEmpty: false
Everything works nicely but the odd thing is - while running this task the Code Coverage shows me the Jacoco html reports, view looks like this
and here the Code Coverage View after the pipeline finished
The second view is not useful, cause you can't navigate into the class and see the code, while with the jacoco html reports this is possible.
What am I doing wrong? Or why is the view changing? How can I avoid this behaviour?


