Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43047

Fix issue processing for nested modules

    Details

    • Similar Issues:

      Description

      When using SonarQube gradle plugin to perform analysis on gradle multi-projects with multiple nested levels, the path of module component in the exported sonar-report.json is not the full path but the path component of the module.

        Attachments

          Activity

          Show
          aquarellian Tatiana Didik added a comment - fixed in https://github.com/jenkinsci/sonar-gerrit-plugin/pull/18/commits/b561b4a08a921b870b3cc6810b4d2f4bc41279c8
          Hide
          aquarellian Tatiana Didik added a comment - - edited

          Example:
          for json like

          {"version":"5.3",
           	"issues":[	 	
           	 	{
           	 	"key":"0154288612E6D93A67",
           	 	"component":"sonar.gerrit.report.base.core:proj1:src/main/java/proj1/Proj1.java", 
           	 	...},
           	], 
           	"components":[
          		{"key":"sonar.gerrit.report:base","path":"base"},		
           		{"key":"sonar.gerrit.report.base:core","path":"core"},
          		{"key":"sonar.gerrit.report.base.core:proj1","path":"proj1"},		 	 			{"key":"sonar.gerrit.report.base.core:proj1:src/main/java/proj1/Proj1.java",
          		"path":"src/main/java/proj1/Proj1.java",
          		"moduleKey":"sonar.gerrit.report.base.core:proj1",
          		"status":"ADDED"},
          	],
          ...}
          

          path should be "base/core/proj1/src/main/java/proj1/Proj1.java" rather than "proj1/src/main/java/proj1/Proj1.java"

          Show
          aquarellian Tatiana Didik added a comment - - edited Example: for json like {"version":"5.3", "issues":[ { "key":"0154288612E6D93A67", "component":"sonar.gerrit.report.base.core:proj1:src/main/java/proj1/Proj1.java", ...}, ], "components":[ {"key":"sonar.gerrit.report:base","path":"base"}, {"key":"sonar.gerrit.report.base:core","path":"core"}, {"key":"sonar.gerrit.report.base.core:proj1","path":"proj1"}, {"key":"sonar.gerrit.report.base.core:proj1:src/main/java/proj1/Proj1.java", "path":"src/main/java/proj1/Proj1.java", "moduleKey":"sonar.gerrit.report.base.core:proj1", "status":"ADDED"}, ], ...} path should be "base/core/proj1/src/main/java/proj1/Proj1.java" rather than "proj1/src/main/java/proj1/Proj1.java"

            People

            • Assignee:
              aquarellian Tatiana Didik
              Reporter:
              aquarellian Tatiana Didik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: