File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ pipeline {
29
29
sonarscanner_zip_file = " sonar-scanner-cli-${ sonarscanner_version} .zip"
30
30
sonarscanner_download_url = " https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/${ sonarscanner_zip_file} "
31
31
32
- sonar_url = ' https://sonarcloud.io'
33
- sonar_creds = ' ecnj_sonar_token'
34
32
sonar_org = ' oracle'
35
33
sonar_project_key = " ${ sonar_org} _weblogic-toolkit-ui"
36
34
}
@@ -149,7 +147,6 @@ pipeline {
149
147
jdk " JDK 11.0.9"
150
148
}
151
149
environment {
152
- sonar_login = credentials(" ${ sonar_creds} " )
153
150
electron_coverage = " ${ WORKSPACE} /electron/coverage/lcov.info"
154
151
webui_coverage = " ${ WORKSPACE} /webui/coverage/lcov.info"
155
152
lcov_report_paths = " ${ electron_coverage} ,${ webui_coverage} "
@@ -162,8 +159,10 @@ pipeline {
162
159
echo " Inside withSonarQubeEnv('SonarCloud') block"
163
160
sh " env|sort"
164
161
sh """
165
- SONAR_SCANNER_OPTS="-server ${ SONAR_SCANNER_OPTS } "; export SONAR_SCANNER_OPTS
162
+ SONAR_SCANNER_OPTS="-server"; export SONAR_SCANNER_OPTS
166
163
${ sonarscanner_exe} \
164
+ -Dsonar.host.url=${ SONAR_HOST_URL} \
165
+ -Dsonar.login=${ SONAR_AUTH_TOKEN} \
167
166
-Dsonar.organization=${ sonar_org} \
168
167
-Dsonar.projectKey=${ sonar_project_key} \
169
168
-Dsonar.projectVersion=${ version_prefix} \
You can’t perform that action at this time.
0 commit comments