Feasibility to import dynamic report to SonarQube for code coverage

Hi Team,

We are using SonarQube 7.9.6 (LTS).

We want to import custom report (json format, e.g., gl-sast-report.json) that gets generated during GitLab CI pipeline execution for sonar analysis.

We are using sonar-scanner-cli docker image as sonar-scanner.

As per sonar doc, we have learnt the sonar property sonar.coverageReportPaths for general reports.
In our use case, we do not have any test cases, instead we do have reports only.

Can you please help us to understand how it can be done ?

Vaibhav Jariwala


Welcome to the community!

First, your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

7.9.6 → 8.9.3 → 9.1 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

By the way – you are probably looking for Generic Issue Data rather than Generic Test/Coverage data.