We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0712485 commit f3c344fCopy full SHA for f3c344f
Jenkinsfile
@@ -161,6 +161,11 @@ pipeline {
161
echo "Inside withSonarQubeEnv('SonarCloud') block"
162
sh "env|sort"
163
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}
169
echo "sonar.host.url=${SONAR_HOST_URL}" >> ${sonarscanner_config_file}
170
echo "sonar.sourceEncoding=UTF-8" >> ${sonarscanner_config_file}
171
echo "sonar.organization=${sonar_org}" >> ${sonarscanner_config_file}
0 commit comments