为 Jenkins 安装和配置 SonarQube 扫描仪——需要说明

Installing and Configuring SonarQube Scanner for Jenkins - needs clarifications

我正在按照下面 url 中的说明配置 jenkins/sonar。

https://docs.sonarqube.org/display/SONARQUBE52/Installing+and+Configuring+SonarQube+Scanner+for+Jenkins

我走到那一步

  1. Scroll down to the SonarQube Runner configuration section and click on Add SonarQube Runner. [...]

If you don't see a drop down list with all available SonarQube Runner versions but instead see an empty text field then this is because Jenkins still don't have downloaded required update center file (default period is 1 day). You may force this refresh by clicking 'Check Now' button in Manage Plugins >> Advanced tab.

本教程没有提到在服务器无法连接到互联网的情况下如何解决这个问题(许多或大多数公司都会遇到这种情况!) .提供的解释 "required update center file" 是为了模糊 IMO。

感谢任何帮助。

如果您的 Jenkins 服务器无法访问互联网来下载更新文件,那么它也无法自动安装扫描程序。

对于您的情况,您需要手动安装扫描仪,然后在 Jenkins 中配置它的路径。