Skip to content

Commit 460a235

Browse files
committed
debugging sonar
1 parent ba7fec7 commit 460a235

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Jenkinsfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ pipeline {
2929
sonarscanner_zip_file = "sonar-scanner-cli-${sonarscanner_version}.zip"
3030
sonarscanner_download_url = "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/${sonarscanner_zip_file}"
3131

32-
sonar_url = 'https://sonarcloud.io'
33-
sonar_creds = 'ecnj_sonar_token'
3432
sonar_org = 'oracle'
3533
sonar_project_key = "${sonar_org}_weblogic-toolkit-ui"
3634
}
@@ -149,7 +147,6 @@ pipeline {
149147
jdk "JDK 11.0.9"
150148
}
151149
environment {
152-
sonar_login = credentials("${sonar_creds}")
153150
electron_coverage = "${WORKSPACE}/electron/coverage/lcov.info"
154151
webui_coverage = "${WORKSPACE}/webui/coverage/lcov.info"
155152
lcov_report_paths = "${electron_coverage},${webui_coverage}"
@@ -162,8 +159,10 @@ pipeline {
162159
echo "Inside withSonarQubeEnv('SonarCloud') block"
163160
sh "env|sort"
164161
sh """
165-
SONAR_SCANNER_OPTS="-server ${SONAR_SCANNER_OPTS}"; export SONAR_SCANNER_OPTS
162+
SONAR_SCANNER_OPTS="-server"; export SONAR_SCANNER_OPTS
166163
${sonarscanner_exe} \
164+
-Dsonar.host.url=${SONAR_HOST_URL} \
165+
-Dsonar.login=${SONAR_AUTH_TOKEN} \
167166
-Dsonar.organization=${sonar_org} \
168167
-Dsonar.projectKey=${sonar_project_key} \
169168
-Dsonar.projectVersion=${version_prefix} \

0 commit comments

Comments
 (0)