I use sonar-runner to analyse my project and the analysis succeeds:
14:30:34.813 INFO - Analysis reports sent to server in 160ms
14:30:34.813 INFO - ANALYSIS S
For those who can't find any failed background tasks or error logs and wonders why Sonar does not show results if test was successful - just check what is your sonar.analysis.mode
. It should be publish
, because preview
and issues
does not send results to Sonar.
In our case we created integration (results were visible in Sonar), then configured integration with Gitlab plugin which forced us to change analysis mode to preview
. Then our results were not visible in Sonar even if test was successful - I didn't realize that connection because it was first time when I used Sonar and.. it was late ;-)
Now we run Sonar analysis 2 times, one for Sonar server results, one for Gitlab autoreview.
There can be 2 explanations for this:
You browsed the Web application too rapidly, the server did not have the time to process your analysis. As the log says: "Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report."
If you think that you've waited already for too long, maybe the processing of your analysis on server-side went wrong. In this case, there are 2 ways to check this:
In the "Settings > System > Analysis Reports > Past Reports" administration page, you should be able to see that the processing failed
In the server logs, you should have a error message that gives more details about the failure