Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-10101

Set sonar.coverage.jacoco.xmlReportPaths

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Implemented
    • None
    • 2.0.0
    • CI

    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

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: