Skip to content

Commit 1dbeca7

Browse files
committed
sonar debugging
1 parent 6add22b commit 1dbeca7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ pipeline {
1111
WKTUI_DEV_PROXY = "${WKTUI_PROXY}"
1212
WKTUI_BUILD_EMAIL = sh(returnStdout: true, script: "echo ${env.WKTUI_BUILD_NOTIFY_EMAIL} | sed -e 's/^[[:space:]]*//'")
1313
WKTUI_PROXY_HOSTPORT = sh(returnStdout: true, script: "echo ${env.WKTUI_PROXY} | sed -e 's,http://,,'")
14+
WKTUI_PROXY_HOST = sh(returnStdout: true, script: "echo ${env.WKTUI_PROXY_HOSTPORT} | sed -e 's/:.*//'")
15+
WKTUI_PROXY_PORT = sh(returnStdout: true, script: "echo ${env.WKTUI_PROXY_HOSTPORT} | sed -e 's/.*://'")
1416

1517
npm_registry = "${env.ARTIFACTORY_NPM_REPO}"
1618
npm_noproxy = "${env.ORACLE_NO_PROXY}"
@@ -162,8 +164,6 @@ pipeline {
162164
echo "Inside withSonarQubeEnv('SonarCloud') block"
163165
sh "env|sort"
164166
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]}')
167167
echo "http.proxyHost=${WKTUI_PROXY_HOST}" >> ${sonarscanner_config_file}
168168
echo "http.proxyPort=${WKTUI_PROXY_PORT}" >> ${sonarscanner_config_file}
169169
echo "sonar.host.url=${SONAR_HOST_URL}" >> ${sonarscanner_config_file}

0 commit comments

Comments
 (0)