Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Implemented
-
None
Description
sonar.sh copies the combined coverage report to all submodules:
#Workaround: Sonar expects per-project Sonar XML report, but we have one, combined. Sonar seems to handle it well. # Only the classes from the current project will be used. We can copy the same, combined report to all the subprojects. if [ -f "$PROJECT_DIR/target/coverage/all.xml" ]; then find "$PROJECT_DIR" -name pom.xml | grep -v target | xargs dirname | xargs -n1 -IDIR mkdir -p DIR/target/coverage/ find "$PROJECT_DIR" -name pom.xml | grep -v target | xargs dirname | xargs -n1 -IDIR cp "$PROJECT_DIR/target/coverage/all.xml" DIR/target/coverage/ fi
We can avoid the need for this hack by setting sonar.coverage.jacoco.xmlReportPaths.
Attachments
Issue Links
- links to