cancel
Showing results for 
Search instead for 
Did you mean: 

SonarQube not picking up Code Coverage when using BTP CI/CD service

03-10-2025 1:59 PM
kavya_kathuria Product and Topic Expert
574 views 0 comments
0 Likes
SAP Managed Tags
Labels
coveragejacocosonarqube
Subscribe

Our team recently switched to using the BTP CI/CD service instead of Jenkins in order to have a pipeline to deploy our Spring-Boot based java application to Cloud Foundry.

We are trying to perform SonarQube scans in the BTP CI/CD service, but the scan is not able to pick up Code Coverage at all, and gives 0% code coverage. We are using jacoco in order to generate code coverage, and the relevant XML file (jacoco.xml) is generated correctly in target/site/jacoco/jacoco.xml

I have tried setting the following property as well

sonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml

but sonarqube still can not pick up the coverage.

My stages in the CI/CD pipeline are as follows:

 

kavya_kathuria_1-1741611493203.png

Could someone guide us in configuring this correctly so that the corresponding coverage is picked up?

0 Likes

Accepted Solutions (0)

Answers (0)