SonarQube 令牌的 Jenkins 凭证不会更新

问题描述 投票:0回答:1

我的 SonarQube 令牌已过期,我在 Jenkins 中收到此消息:

INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent)
INFO: Load global settings
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.968s
INFO: Final Memory: 5M/56M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
ERROR: Not authorized. Please check the user token in the property 'sonar.token' or the credentials in the properties 'sonar.login' and 'sonar.password'.

我尝试通过在 SonarQube 的“安全”选项卡下创建新的用户令牌来更新凭据。之后,我使用令牌作为凭据创建了一个新的秘密文本。我通过添加新密钥在系统配置中更新了它。它仍然不起作用。我错过了什么?它在令牌过期之前就起作用了,我记得我做了相同的设置。

jenkins configuration sonarqube token pipeline
1个回答
0
投票

这是我的 Jenkinsfile 中的东西。我删除了这一行:

withSonarQubeEnv('sq1') {
我的jenkins因此找不到安装位置。我重新输入了这个,现在可以了。

© www.soinside.com 2019 - 2024. All rights reserved.