[英]Integrating sonarqube with Jenkins
I am trying to run sonar sonar:sonar
by integrating sonarqube and jenkins. 我试图通过整合sonarqube和jenkins来运行声纳
sonar:sonar
。 While doing, am getting the below error. 在做的时候,我得到了以下错误。
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project iwm_common: Can not execute SonarQube analysis: org.slf4j.impl.SimpleLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext -> [Help 1]
Jenkins version - 1.612 詹金斯版 - 1.612
Sonarqube version - 3.6 Sonarqube版本 - 3.6
JDK-1.7.0_76 JDK-1.7.0_76
Maven - 3.1.1 Maven - 3.1.1
Jenkins WAR is deployed in server A and sonarqube is deployed in server B. I have not installed sonar-jenkins
plugin in Jenkins. Jenkins WAR部署在服务器A中,sonarqube部署在服务器B中。我没有在Jenkins中安装
sonar-jenkins
插件。
Can anyone let me know whether sonar-jenkins
plugin is mandatory to be installed in jenkins to integrate jenkins with any sonar server (eg:sonarqube). 谁能让我知道是否必须在jenkins中安装
sonar-jenkins
插件以将jenkins与任何声纳服务器集成(例如:sonarqube)。
If the answer is YES
, then after installation of the required plugin, will adding the sonar server (eg:sonarqube) information under Manage Jenkins -> Configure system -> sonar
resolve the above error ? 如果答案是
YES
,那么在安装完所需的插件之后,将在Manage Jenkins -> Configure system -> sonar
下添加声纳服务器(例如:sonarqube)信息解决上述错误?
The error is related to sonar-maven-plugin
and this plugin is not used in any of the project's pom.xml. 该错误与
sonar-maven-plugin
有关,并且该插件未在任何项目的pom.xml中使用。 Can anyone please explain whether this plugin gets referred as a part of sonar:sonar
goal. 任何人都可以解释这个插件是否被称为
sonar:sonar
的一部分sonar:sonar
目标。 Thanks. 谢谢。
The versions you specified are not compatible for running sonar analysis. 您指定的版本与运行声纳分析不兼容。
Please upgrade SonarQube version (current is 5.1.1) which requires 请升级需要的SonarQube版本(当前为5.1.1)
Java 1.7-1.8 SonarQube 5.0 or 5.1.1 Sonar-runner 2.4 Java 1.7-1.8 SonarQube 5.0或5.1.1 Sonar-runner 2.4
使用最新版本的sonarqube解决了上述问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.