Skip to content

Commit b955d8b

Browse files
committed
debugging sonar
1 parent 172187f commit b955d8b

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

Jenkinsfile

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -158,20 +158,18 @@ pipeline {
158158
echo "JAVA_HOME = ${JAVA_HOME}"
159159
sh "which java"
160160
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+
}
175173
}
176174
}
177175
stage('Linux Run eslint') {

0 commit comments

Comments
 (0)