Sonarqua integration with Jenkins
I am trying to run sonar sonar:sonar
by combining sonarqua and jenkins. While executing I am getting 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 Sonarqube
version - 3.6
JDK 1.7.0_76-
Maven - 3.1.1
Jenkins WAR is deployed on server A and sonarqube is deployed on server B. I have not installed the plugin sonar-jenkins
in Jenkins.
Can anyone tell me if the plugin is sonar-jenkins
required to be installed in jenkins to integrate jenkins with any sonar server (ex: sonarqube).
If the answer is YES
, then after installing the required plugin, information about the sonar server (for example: sonarqube) will be added in the section Resolve the Manage Jenkins -> Configure system -> sonar
above error?
The error is related to sonar-maven-plugin
and this plugin is not used in any of the pom.xml projects. Can someone please explain if this plugin is included as part of the target sonar:sonar
. Thank.
source to share