Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24706

Fix Sonar coverage report

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 9.2
    • Fix Version/s: 10.2
    • Component/s: Tests

      Description

      The coverage reported has dropped to zero because of the aggregation failure, since NXBT-1486

      + mvn clean verify sonar:sonar -Dsonar.login=**** -Paddons,distrib,qa,sonar -Dsonar.branch.name=master
      
      [INFO] --- jacoco-maven-plugin:0.8.0:prepare-agent (prepare-agent) @ nuxeo-jsf-ui-webdriver-tests ---
      [INFO] it.failsafe.argLine set to (...) destfile=/opt/jenkins/workspace/master/nuxeo-master-sonar/target/jacoco-it.dump
      
      [INFO] Building Nuxeo ECM Projects 10.2-SNAPSHOT
      [INFO] --- sonar-maven-plugin:3.4.0.905:sonar (default-cli) @ nuxeo-ecm ---
      
      [INFO] User cache: /opt/jenkins/.sonar/cache
      [INFO] SonarQube version: 7.1.0
      
      [INFO] JaCoCo report not found: '${session.executionRootDirectory}/target/jacoco-it.dump'
      

      the session.executionRootDirectory property is not interpolated by the sonar-maven-plugin.

      https://stackoverflow.com/questions/36597838/session-executionrootdirectory-is-not-recognized-by-sonar-maven-plugin
      https://jira.sonarsource.com/browse/SONAR-3427

      This can be circumvented on execution by providing a hardcoded path. from the environment.
      Another solution may be to use directory-maven-plugin.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: