Sonarqube code coverage remains 0% after configuring Jacoco
I have followed the instructions on Jacoco docs and soanrqube docs. I have my sonar server running on a self hosted runner. I have left the param sonar.coverage.jacoco.xmlReportPaths on Sonar UI empty as it was mentioned it will take the default path as target/site/jacoco/jacoco.xml. I have not set this property in my pom as well and when I locally run mvn test, I can see the report xml file generated in the same location. I can see the html page as well about my code coverage.
Now I want this to be shown on my sonar UI also. As mentioned I am using a remote self hosted runner with github actions. I can see the new code added on sonarqube UI (all the changes I did to pom for jacoco) but the code coverage remains 0%.
I saw an answer to move artifacts between workflow steps but did not understand. Here is my workflow file (anything removed from file is replaced by …):