简体   繁体   English

Azure Devops maven 在声纳 qube 实例中构建失败

[英]Azure Devops maven build failing at sonar qube instance

I recently downloaded the SonarQube demo from Devops official page.我最近从 Devops 官方页面下载了 SonarQube 演示。 I used it a little bit and kind of left it there for a week.我用了一点,然后把它放在那里一个星期。

No changes were made but when I came back today for showing how the sonarQube pipeline integration works, build fails.没有进行任何更改,但是当我今天回来展示 sonarQube 管道集成如何工作时,构建失败。

From the logs, I see the following error从日志中,我看到以下错误

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project myshuttle: Not authorized. Please check the properties sonar.login and sonar.password

From there I tried adding username and password at the Prepare analysis for sonar Qube stage om advanced options (which was not necessary before) but the build keeps failing.从那里我尝试在Prepare analysis for sonar Qube stage添加用户名和密码(以前不需要),但构建一直失败。

I think sonarQube was updated recently and the problem may be there.我认为 sonarQube 最近更新了,问题可能就在那里。 Issue is still weird because im following word by word the steps on setting up a sonarQube scan.问题仍然很奇怪,因为我逐字逐句地遵循设置 sonarQube 扫描的步骤。

Any idea on what could be going on?知道会发生什么吗?

You may need to update your sonarQube service connection.您可能需要更新 sonarQube 服务连接。

You can go to your Project settings and click the Service Connections under Pipelines .您可以 go 到您的项目设置,然后单击Pipelines下的Service Connections

Select your sonarqube connection and click update service connection under Actions , Recopy your SonarQube Token and click Ok. Select 您的 sonarqube 连接并单击操作下的更新服务连接,重新复制您的SonarQube 令牌并单击确定。 Please refer to below screenshot.请参考下面的截图。

在此处输入图像描述

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

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