【问题标题】:SonarQube Scanner Error while running the sonar qube from Jenkins build pipeline从 Jenkins 构建管道运行声纳 qube 时出现 SonarQube 扫描仪错误
【发布时间】:2020-05-25 16:43:57
【问题描述】:

在 Jenkins 构建管道的一部分,我们正在运行声纳 qube 代码扫描并且工作正常,就在几天前它开始抛出如下所述的错误

Sonar Qube version: 6.7.6 (build 38781)
Sonar Scanner version: sonar-scanner-3.3.0.1492-windows
(Env variable) SONAR_SCANNER : C:\sonar-scanner-3.3.0.1492-windows

00:44:26.810 ERROR: Error during SonarQube Scanner execution
00:44:26.810 ERROR: Unable to load component class org.sonar.scanner.bootstrap.ScannerPluginInstaller
00:44:26.810 ERROR: Caused by: Unable to load component class org.sonar.home.cache.FileCache
00:44:26.810 ERROR: Caused by: Unable to load component class org.sonar.scanner.bootstrap.GlobalConfiguration
00:44:26.810 ERROR: Caused by: Not authorized. Please check the properties sonar.login and sonar.password.

我们无法升级到较新的版本,我想了解导致 Sonar 出现问题的原因。感谢您的回复。

【问题讨论】:

  • “原因:未授权”听起来很像您已通过身份验证,但无权访问您尝试在服务器端访问的功能/项目。

标签: jenkins sonarqube sonarqube-scan


【解决方案1】:

从管理页面 (Sonarqube) 授予访问权限以运行执行声纳分析,然后 从 UI 生成登录令牌。 _ **在 sonar.properties 文件中使用 propertyb** _

sonar.login=令牌

【讨论】:

  • @user2716600 你能在答案的上箭头上打勾,这样它也能帮助其他人。
猜你喜欢
  • 2017-07-08
  • 2017-08-19
  • 2017-10-09
  • 2021-07-05
  • 2017-03-15
  • 2018-02-09
  • 2017-04-27
  • 2020-01-08
  • 2018-03-30
相关资源
最近更新 更多