File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -158,20 +158,18 @@ pipeline {
158
158
echo " JAVA_HOME = ${ JAVA_HOME} "
159
159
sh " which java"
160
160
sh " java -version"
161
- sh """
162
- SONAR_SCANNER_OPTS="-X -server"; export SONAR_SCANNER_OPTS
163
- ${ sonarscanner_exe} \
164
- -Dsonar.sourceEncoding=UTF-8 \
165
- -Dsonar.host.url=${ sonar_url} \
166
- -Dsonar.login="${ sonar_login} " \
167
- -Dsonar.organization=${ sonar_org} \
168
- -Dsonar.projectKey=${ sonar_project_key} \
169
- -Dsonar.projectVersion=${ version_prefix} \
170
- -Dsonar.branch.name=${ BRANCH_NAME} \
171
- -Dsonar.javascript.lcov.reportPaths="${ lcov_report_paths} "
172
- """
173
- // withSonarQubeEnv('SonarCloud') {
174
- // }
161
+ withSonarQubeEnv(' SonarCloud' ) {
162
+ sh """
163
+ env|sort
164
+ SONAR_SCANNER_OPTS="-server ${ SONAR_SCANNER_OPTS} "; export SONAR_SCANNER_OPTS
165
+ ${ sonarscanner_exe} \
166
+ -Dsonar.organization=${ sonar_org} \
167
+ -Dsonar.projectKey=${ sonar_project_key} \
168
+ -Dsonar.projectVersion=${ version_prefix} \
169
+ -Dsonar.branch.name=${ BRANCH_NAME} \
170
+ -Dsonar.javascript.lcov.reportPaths="${ lcov_report_paths} "
171
+ """
172
+ }
175
173
}
176
174
}
177
175
stage(' Linux Run eslint' ) {
You can’t perform that action at this time.
0 commit comments