Code Coverage 0% - Azure Pipelines Task

Hi,

I had configured Azure Pipelines to deploy the results to a SonarQube Machine, but something weird is happening. When I open my project on SonarQube, the code coverage is 0%. Any file on my project has 0% code coverage.

I am using Azure Pipelines + Maven, and I configured the “Prepare Analysis Configuration” and “Publish Quality Gate Results” tasks, according to the manual provided in your documentation. Do I need to configure something else to the code coverage results upload to the sonar server?

You should using maven jacoco plugins

As Ho Khanh pointed out, have you configured Jacoco with Maven?