Report issue / Finding from external source

Must-share information (formatted with Markdown):

  • Sonarqube enterprise 8.9
  • hosted model

Query: I have to scan specific pattern in build.gradle file and if that’s found need to report that issue to sonarqube.
Project Language – Java 11
Build - Gradle 7

While I search on official documentation it refer me to importing external issues

I took long way and using genric issue import format.
Created valid json report.json (444 Bytes)
and uploading to sonarqube by below command in in CI pipeline
gradle sonarqube -Dsonar.host.url=${SONAR_HOST_URL} -Dsonar.projectKey=com.X.service -Dsonar.externalIssuesReportPaths=${WORKSPACE}/report.json || exitCode=$?
Result published BUILD SUCCESSFUL in 25s, However

while I am check on sonarqube again projectKey, those analysis are not shown under issue tab.

I have checked on sonarqube – administrator – project – background task, my project shows successful execution and all set parameters are shown over their, however results are not published under issue tab.

Please suggest if you experience similar behavior or I am missing something

Also navigate me if I have to use sonar.java.spotbugs.reportPaths Comma-delimited list of paths to reports from SpotBugs, FindSecBugs, or FindBugs
instead of generic. If your answer is yes the what should be the xml format for the reported bug using this method.

Hi,

Your version is past EOL. You should upgrade to either the latest version or the current LTS (long-term support version) at your earliest convenience. Your upgrade path is:

8.9 → 9.9.4 → 10.4 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.

@Colin Thanks for the information. Would like to here more about the on going problem

I also tried on latest verion 10.1 its not working after setting up new json format for the report.