Skip to content

Commit 4455328

Browse files
committed
debugging sonar
1 parent f3c344f commit 4455328

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ pipeline {
161161
echo "Inside withSonarQubeEnv('SonarCloud') block"
162162
sh "env|sort"
163163
sh """
164-
hostport=$(echo $proxy | sed -e 's,http://,,')
165-
host=$(echo $hostport | awk '{split($0,a,":"); print a[1]}')
166-
port=$(echo $hostport | awk '{split($0,a,":"); print a[2]}')
164+
hostport=\$(echo ${WKTUI_PROXY} | sed -e 's,http://,,')
165+
host=\$(echo ${hostport} | awk '{split(\$0,a,":"); print a[1]}')
166+
port=\$(echo ${hostport} | awk '{split(\$0,a,":"); print a[2]}')
167167
echo http.proxyHome=${host} >> ${sonarscanner_config_file}
168168
echo http.proxyPort=${port} >> ${sonarscanner_config_file}
169169
echo "sonar.host.url=${SONAR_HOST_URL}" >> ${sonarscanner_config_file}

0 commit comments

Comments
 (0)