Using SonarQube 7.3 and the latest download of sonar-scanner, how does one import external issues? As a sanity check I’m attempting to import the example generic issue json for Generic Issue Data
The SonarQubeIssueData.json file contains the json from Generic Issue Data
I then execute from the same directory containing the above properties file: sonar-scanner -X
I see that something is happening in the SonarQube log. And the sonar-scanner log reports a success: 12:57:20.512 INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard?id=abc123321
However, none of the external issues show in the SonarQube web console.
Did you adapt the filepaths so that they correspond to actual files that are being scanned by SonarQube ? SonarQube will import the external issue(s) only if they relate to source file(s) that’s actually been analyzed (and which can then be browsed in SQ).