Skip to content

Commit 6add22b

Browse files
committed
debugging sonar
1 parent 494007e commit 6add22b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Jenkinsfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,6 @@ pipeline {
152152
electron_coverage = "${WORKSPACE}/electron/coverage/lcov.info"
153153
webui_coverage = "${WORKSPACE}/webui/coverage/lcov.info"
154154
lcov_report_paths = "${electron_coverage},${webui_coverage}"
155-
156-
WKTUI_PROXY_HOST = sh(returnStdout: true, script: "echo ${WKTUI_PROXY_HOSTPORT} | awk '{split(\$0,a,\":\"); print a[1]}'")
157-
WKTUI_PROXY_PORT = sh(returnStdout: true, script: "echo ${WKTUI_PROXY_HOSTPORT} | awk '{split(\$0,a,\":\"); print a[2]}'")
158155
}
159156
steps {
160157
echo "JAVA_HOME = ${JAVA_HOME}"
@@ -165,6 +162,8 @@ pipeline {
165162
echo "Inside withSonarQubeEnv('SonarCloud') block"
166163
sh "env|sort"
167164
sh """
165+
WKTUI_PROXY_HOST=\$(echo ${WKTUI_PROXY_HOSTPORT} | awk '{split(\$0,a,":"); print a[2]}')
166+
WKTUI_PROXY_PORT=\$(echo ${WKTUI_PROXY_HOSTPORT} | awk '{split(\$0,a,":"); print a[2]}')
168167
echo "http.proxyHost=${WKTUI_PROXY_HOST}" >> ${sonarscanner_config_file}
169168
echo "http.proxyPort=${WKTUI_PROXY_PORT}" >> ${sonarscanner_config_file}
170169
echo "sonar.host.url=${SONAR_HOST_URL}" >> ${sonarscanner_config_file}

0 commit comments

Comments
 (0)