简体   繁体   English

Jenkins中未启用声纳链接

[英]Sonar Link not enabled in Jenkins

I am trying to run a job in Jenkins for sonar analysis(Using "Invoke standalone Sonar analysis" option) which refreshes the view in Sonar Dashboard , but sonar link is not enabled in Jenkins even after the build is successful. 我正在尝试在Jenkins中进行声纳分析工作(使用“调用独立的Sonar分析”选项),以刷新Sonar Dashboard中的视图,但是即使在构建成功之后,Jenkins也不会启用声纳链接。 Console of Jenkins shows links to all the views of the Sonar dashboard which is not the expected output. Jenkins的控制台显示指向Sonar仪表板的所有视图的链接,这不是预期的输出。

SonarQube version - 5.6 (LTS version) SonarQube版本-5.6 (LTS版本)
Sonar runner - 2.8 (official documentation of SonarQube says this version is compatible with LTS version) 声纳运行器 -2.8(SonarQube的官方文档说此版本与LTS版本兼容)
Jenkins used - 1.554 詹金斯二手车-1.554

I had tried almost with all possible sonar scanner/runner versions available but no luck.Please help me on this!! 我已经尝试了几乎所有可能的声纳扫描仪/运行器版本,但没有运气。请对此提供帮助!

Thanks in advance :) 提前致谢 :)

Please check the console which is updating all the views in the Sonarqube. 请检查正在更新Sonarqube中所有视图的控制台。

INFO: SonarQube Server 5.6.6 INFO:SonarQube服务器5.6.6
00:46:09.873 INFO - Load global repositories 00:46:09.873信息-加载全局存储库
00:46:10.456 INFO - Load global repositories (done) | 00:46:10.456信息-加载全局存储库(完成)| time=585ms 时间= 585ms
00:46:10.471 INFO - Server id: xxxxxxx 00:46:10.471 INFO-服务器ID:xxxxxxx
00:46:10.483 WARN - Property 'sonar.jdbc.url' is not supported any more. 00:46:10.483警告-属性'sonar.jdbc.url'不再受支持。 It will be ignored. 它将被忽略。 There is no longer any DB connection to the SQ database. 到SQ数据库的数据库连接不再存在。
00:46:10.484 WARN - Property 'sonar.jdbc.username' is not supported any more. 00:46:10.484警告-属性'sonar.jdbc.username'不再受支持。 It will be ignored. 它将被忽略。 There is no longer any DB connection to the SQ database. 到SQ数据库的数据库连接不再存在。
00:46:10.484 WARN - Property 'sonar.jdbc.password' is not supported any more. 00:46:10.484警告-属性'sonar.jdbc.password'不再受支持。 It will be ignored. 它将被忽略。 There is no longer any DB connection to the SQ database. 到SQ数据库的数据库连接不再存在。
00:46:10.486 INFO - User cache: /home/jenkins/.sonar/cache 00:46:10.486 INFO-用户缓存:/home/jenkins/.sonar/cache
00:46:10.865 INFO - Load plugins index 00:46:10.865信息-加载插件索引
00:46:10.887 INFO - Load plugins index (done) | 00:46:10.887信息-加载插件索引(完成)| time=22ms 时间= 22毫秒
00:46:11.777 INFO - governance licensed, PRODUCTION_GLOBAL 00:46:11.777 INFO-治理许可,PRODUCTION_GLOBAL
00:46:11.785 INFO - Trigger Views update 00:46:11.785信息-触发视图更新
00:46:12.463 INFO - Following views updates have been successfully submitted: 00:46:12.463信息-以下视图更新已成功提交:
00:46:12.463 INFO - * http://localhost.she.pwj.com:9000/api/ce/task?id=AVrQSaXCM-vkk86yLw-C 00:46:12.463信息-* http://localhost.she.pwj.com:9000/api/ce/task?id=AVrQSaXCM-vkk86yLw-C
00:46:12.464 INFO - * http://localhost.she.pwj.com:9000/api/ce/task?id=AVrQSaXoM-vkk86yLw-D 00:46:12.464信息-* http://localhost.she.pwj.com:9000/api/ce/task?id=AVrQSaXoM-vkk86yLw-D

INFO: ------------------------------------------------------------------------ 信息:------------------------------------------------ ------------------------
INFO: EXECUTION SUCCESS INFO:执行成功
INFO: ------------------------------------------------------------------------ 信息:------------------------------------------------ ------------------------
Total time: 3.849s 总时间:3.849s
Final Memory: 7M/53M 最终内存:7M / 53M
INFO: ------------------------------------------------------------------------ 信息:------------------------------------------------ ------------------------
Finished: SUCCESS 已完成:成功

Views regeneration is not like project analysis. 视图重新生成不像项目分析。 Project analysis updates a single project, thus the analysis log can provide you a link to the single project in question. 项目分析会更新单个项目,因此分析日志可以为您提供到单个项目的链接。 Views regeneration updates all views. 视图重新生成将更新所有视图。 What you're seeing in the logs is the links to the relevant background tasks. 您在日志中看到的是指向相关后台任务的链接。 You can follow those tasks to know when regeneration is complete. 您可以按照这些任务来了解再生何时完成。 But viewing a background task is a privileged operation. 但是查看后台任务是一项特权操作。 If you cannot successfully follow the links in the view regeneration log, it means that either you're not logged in or your privileges are insufficient. 如果您无法成功跟随视图重新生成日志中的链接,则意味着您尚未登录或特权不足。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM