我有一个詹金斯工作,是在对位桶存储库进行PR时触发的。该作业将对存储库进行声纳扫描。
然后,我使用名为sonar-for-bitbucket的sonarqube插件,该插件将进行PR注释以总结分析。
这部分成功发生。
这是我在詹金斯中的声纳配置。
这是控制台输出
...
INFO: ANALYSIS SUCCESSFUL
INFO: Executing post-job Sonar Plug-in for Bitbucket Cloud
INFO: [sonar4bitbucket] Plug-in is active and will analyze pull request with #199...
INFO: Task total time: 1:25.408 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:27.292s
INFO: Final Memory: 64M/827M
INFO: ------------------------------------------------------------------------
WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succedeed?
Finished: SUCCESS
但是,当我进入sonarqube UI时,它没有显示任何分析结果。
我还尝试使用sonar-scanner
从Macbook运行此程序。得到了相同的结果。
INFO: ANALYSIS SUCCESSFUL
INFO: Task total time: 35.944 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 2:50.449s
INFO: Final Memory: 28M/813M
INFO: ------------------------------------------------------------------------