是否可以 运行 Azure devops 部署管道上的本地 SonarQube 服务器?

Is it possible to run an On premise SonarQube Server on azure devops deploy pipeline?

我正在将我的应用程序部署到承诺的 IIS 服务器上,我想同时 运行 sonarQube Analytics,使用自托管代理,但 sonarQube 服务器在另一台服务器上.

我正在考虑 运行 使用 cmd 的命令来启动分析,但我不确定如何执行此操作,因为 sonarQube 在另一台服务器中。

是的,您可以使用您的服务器。主要条件是您的 SonarQube 服务器可从 Internet 访问,因为 Azure DevOps 创建服务连接。您可以在这里找到课程:Managing technical debt with SonarQube and Azure DevOps

Is it possible to run an On premise SonarQube Server on azure devops deploy pipeline?

简短的回答是肯定的。

您不需要将 SonarQube 托管在同一台服务器上。您可以在构建服务器上使用 SonarScanner 作为客户端,扫描器会将数据推送到 SonarQube。

有一张关于 SonarQube Architecture and Integration 的图像:

显然,SonarQube Scanner 应该是您要找的。

在此处阅读有关 SonarScanner 的更多信息:

https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/

证书来自:how to use one sonar server on multiple machines.

希望对您有所帮助。