File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -61,16 +61,18 @@ pipeline {
61
61
}
62
62
steps {
63
63
script {
64
+ String jdkHome = sh(script : ' echo ${SONAR_JDK_HOME}' , returnStdout : true ). trim()
64
65
withSonarQubeEnv {
65
66
sh """
66
- mvn ${ SONAR_MAVEN_GOAL} -Dsonar.projectKey=Silverpeas_Silverpeas-Components \\
67
+ JAVA_HOME=$jdkHome mvn ${ SONAR_MAVEN_GOAL} \\
68
+ -Dsonar.projectKey=Silverpeas_Silverpeas-Components \\
67
69
-Dsonar.organization=silverpeas \\
68
70
-Dsonar.pullrequest.branch=${ env.BRANCH_NAME} \\
69
71
-Dsonar.pullrequest.key=${ env.CHANGE_ID} \\
70
72
-Dsonar.pullrequest.base=master \\
71
73
-Dsonar.pullrequest.provider=github \\
72
74
-Dsonar.host.url=${ SONAR_HOST_URL} \\
73
- -Dsonar.login =${ SONAR_AUTH_TOKEN} \\
75
+ -Dsonar.token =${ SONAR_AUTH_TOKEN} \\
74
76
-Dsonar.scanner.force-deprecated-java-version=true
75
77
"""
76
78
}
You can’t perform that action at this time.
0 commit comments