Recently, SonarQube uses the bintray repository for package distribution, in https (see update-center.properties).
Using the update center behind a proxy, some updates are found but when upgrade, error (here for xml plugin) :
Fail to download the plugin (xml, version 1.3) from https://sonarsource.bintray.com/Distribution/sonar-xml-plugin/sonar-xml-plugin-1.3.jar (error is : Fail to download: https://sonarsource.bintray.com/Distribution/sonar-xml-plugin/sonar-xml-plugin-1.3.jar (no proxy))
The SonarQube:DefaultHttpDownloader seems not support https.proxyXXX properties.
Is there today a mean to use the update center for these plugins ?
@SonarSource : This feature could be supported in sonar.properties
for the future ? Or declare http url for bintray repository (but evil) ?
Thanks
Is there today a mean to use the update center for these plugins ?
In sonar.properties
use sonar.web.javaAdditionalOpts
parameter to declare https.proxyXXX
properties :
sonar.web.javaAdditionalOpts=-Dhttps.proxyHost=proxy.company.com -Dhttps.proxyPort=80 -Dhttps.proxyUser=myUser -Dhttps.proxyPassword=myPassword
NB :
https.proxyUser
/https.proxyPassword
are useless if the same as http.proxyUser
/http.proxyPassword
further in the configuration.Perhaps one day some specific properties will be available in SonarQube config :-).
The properties https.proxyHost
and https.proxyPort
are finally supported in SonarQube 5.5. Thanks Alix for the feedback.
https://jira.sonarsource.com/browse/SONAR-7429
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With