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

后端 未结 2 533
余生分开走
余生分开走 2021-01-23 15:55

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         


        
2条回答
  •  醉话见心
    2021-01-23 16:24

    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.

提交回复
热议问题