Hi,
I’m migrating SonarQube analysis from Azure DevOps pipeline steps to GitLab CI pipeline jobs.
From the same project, once the analysis are uploaded to SonarQube, the Code tab is showing:
only one root folder from Azure DevOps pipeline steps
several sub-folders from GitLab CI pipeline jobs
Is there a sonar property I could use to tell that I want a cumulative display? (I already set the sonar.sources property to the one folder I want).
Same analyzer yes, run on the same server machine.
The analysis is run from the root of the local Git repository in both cases.
And yes, clicking on the one folder is showing the same details as in the second screen shot.
But I was wondering if this could affect the result of the analysis or not.
And I would prefer the first way of presenting the result, with one folder and one cumulated value for all metrics (line of code, coverage…).
Could you share the two pipelines/analysis configurations, as well as the two analysis logs?
The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.