I use:
SonarQube Version 7.6 (build 21501)
SonarQube Scanner 3.3.0.1492
I execute the following command:
sonar-scanner -Dsonar.projectKey=testkey -Dsonar.sources=. -Dsonar.externalIssuesReportPaths=SonarQubeIssueData.json -Dsonar.report.export.path=sonar-report.json -Dsonar.analysis.mode=preview
I use the last 2 items in order to get the resulting report locally for further sending to gerrit (as comments)
I took the content for the SonarQubeIssueData.json from the doc, specifying the real filePath.
However, I do not see any āgenerated errorsā in my resulting sonar-report.json
Maybe I should install some sonar-plugin for this to work or am I doing something wrong? Can anyone give some advice?
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:
Regarding your actual question, that report hasnāt been supported for quite some time, so Iām not surprised that external issues never got added to it. I would have told you the two features didnāt overlap, but obviously Iād have been wrong about that.
Thanks for your answer, Ann!
Iād like to use a similar mechanism for reporting to gerrit.
Iām interested in: are there modern tools allow to do something like that?
I mean saving a āsonar reportā for sending it to gerrit? Or such things are no longer supported at all?