[英]FATAL: No SonarQube installation assigned for this job. There are 0 available installations that can be configured
I'm trying to configure code quality check with SonarQube in Jenkins. 我正在尝试使用Jenkins中的SonarQube配置代码质量检查。 I've added in Jenkins Sonar - plugin and configured it in Manage Jenkins - Configure system - MSBuild SonarQube Runner
我在Jenkins Sonar中添加了插件,并在Manage Jenkins中配置了它-配置系统-MSBuild SonarQube Runner
But when I try to buid my project with Jenkins, I get the error: 但是,当我尝试与Jenkins建立项目时,出现错误:
FATAL: No SonarQube installation assigned for this job.
严重:未为该作业分配SonarQube安装。 There are 0 available installations that can be configured.
可以配置0个可用的安装。 If you want to reassign a lot of jobs to a different SonarQube installation see
http://docs.sonarqube.org/display/PLUG/Reassign+Jobs+to+Another+SonarQube+InstanceBuild step 'Invoke Standalone SonarQube Analysis' marked build as failure channel stopped如果您想将许多作业重新分配给不同的SonarQube安装,请参见
http://docs.sonarqube.org/display/PLUG/Reassign+Jobs+to+Another+SonarQube+Instance构建步骤“调用独立SonarQube Analysis”标记为构建当故障通道停止时
EDIT 编辑
The page cited in the error message has moved. 错误消息中引用的页面已移动。 The new URL is: https://docs.sonarqube.org/display/SCAN/Reassign+Jobs+to+Another+SonarQube+Instance
新的URL是: https : //docs.sonarqube.org/display/SCAN/Reassign+Jobs+to+Another+SonarQube+Instance
There are 2 parts of global configuration. 全局配置分为2部分。 You have done the first.
您已经完成了第一步。 Now you must configure at least one SonarQube server.
现在,您必须至少配置一台SonarQube服务器。
Look for the section toward the bottom of the page labeled either "SonarQube", or "SonarQube server" and configure the server instance you expect analysis to submit data to. 在页面底部找到标有“ SonarQube”或“ SonarQube服务器”的部分,然后配置您希望分析将数据提交到的服务器实例。
For Maven or Ant steps, you need to set the variables to point the scanner to the sonarqube server. 对于Maven或Ant步骤,您需要设置变量以将扫描仪指向声纳服务器。
For Standalone, you can define the sonar server installation directly. 对于单机版,您可以直接定义声纳服务器安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.