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:
Could someone guide us in configuring this correctly so that the corresponding coverage is picked up?
Request clarification before answering.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.