简体   繁体   English

严重:未为该作业分配SonarQube安装。 可以配置0个可用的安装

[英]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+Instance Build 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. 对于单机版,您可以直接定义声纳服务器安装。

独立

Instructions 说明

暂无
暂无

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

相关问题 使用某种数据类型作为 MapReduce 作业的输入。 - Use some datatype as input for a MapReduce job. 无法从 Jenkins 工作中调用 SonarQube - Can't call SonarQube from Jenkins job javax.print.PrintException:打印机不接受作业。 在UNIX上 - javax.print.PrintException: Printer is not accepting job. On UNIX 在Java打印作业中,页面格式中的标准纸张尺寸是多少? - What is the Standard Paper Size in Pageformat at a Java Printing job. Jenkins Job 找不到 JDK 但在 Jenkins 中配置了 JDK - Jenkins Job Can't find JDK but JDK configured in Jenkins 无法在TransportClient中创建InetSocketTransportAddress:NoNodeAvailableException [没有配置的节点 - 可用:[]] - Can't create InetSocketTransportAddress in TransportClient: NoNodeAvailableException[None of the configured nodes -are available: []] Jenkins API:EnvVars.overrideAll不会覆盖Pipeline作业中的现有环境变量。 - Jenkins API: EnvVars.overrideAll not overriding existing environment variables in Pipeline job. 错误:找不到要构建的任何修订。 验证此作业的存储库和分支配置。 完成:失败 - ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job. Finished: FAILURE 找不到任何修改版本。 验证此作业的存储库和分支配置。 完成:失败 - Couldn't find any revision to build. Verify the repository and branch configuration for this job. Finished: FAILURE SonarQube:无法访问SonarQube服务器 - SonarQube : SonarQube server can not be reached
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM