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.