Skip to content

Commit f3c344f

Browse files
committed
debugging sonar
1 parent 0712485 commit f3c344f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Jenkinsfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ 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]}')
167+
echo http.proxyHome=${host} >> ${sonarscanner_config_file}
168+
echo http.proxyPort=${port} >> ${sonarscanner_config_file}
164169
echo "sonar.host.url=${SONAR_HOST_URL}" >> ${sonarscanner_config_file}
165170
echo "sonar.sourceEncoding=UTF-8" >> ${sonarscanner_config_file}
166171
echo "sonar.organization=${sonar_org}" >> ${sonarscanner_config_file}

0 commit comments

Comments
 (0)