Why does SonarQube not show results, although the analysis succeeded?

五迷三道 提交于 2019-12-02 03:44:01

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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!