Hi All,
I faced the issue when try to run sonarqube enterprise with jenkins, kindly help me to investigate this issue.
Hi All,
I faced the issue when try to run sonarqube enterprise with jenkins, kindly help me to investigate this issue.
Welcome
you didn’t mention your Sonarqube version, but i’m almost sure the problem is, the analysis runs with Java 11 when it needs to run on Java 17.
Gilbert
Thank for your answer, So I need to try to update java version to 17.
PS. my sonarqube version is 9.9.3 (build 79811)
Only the Sonarqube analysis has to run with Java 17.
The next Jenkins version itself requires Java 17, which means it will be easier in the future.
We also use a Jenkins version still running with Java 11 and therefore split the mvn build and
mvn sonar:sonar into two separate mvn calls.
means the first
mvn clean install ...
runs on Java 11
but the Sonarqube analysis runs on Java 17
nodejs(configId: ..., nodeJSInstallationName: 'nodejs-20') {
withSonarQubeEnv(sonarenv) {
withMaven(jdk: 'java-17-openjdk', maven: 'maven-3.9', globalMavenSettingsConfig: ...) {
sh "mvn ${sonarDebug ? '-X' : ''} sonar:sonar ${sqProjectVersion ? "-Dsonar.projectVersion=$sqProjectVersion" : ''} -Dsonar.branch.name=$BRANCH_NAME"
}
}
}
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.