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
The properties
https.proxyHost
andhttps.proxyPort
are finally supported in SonarQube 5.5. Thanks Alix for the feedback. https://jira.sonarsource.com/browse/SONAR-7429In
sonar.properties
usesonar.web.javaAdditionalOpts
parameter to declarehttps.proxyXXX
properties :NB :
https.proxyUser
/https.proxyPassword
are useless if the same ashttp.proxyUser
/http.proxyPassword
further in the configuration.Perhaps one day some specific properties will be available in SonarQube config :-).
I tried updating sonar.web.javaAdditionalOpts in sonar.properties, but the settings were not picked up (using sonarqube:5.1.1 docker image).
I had to adapt the startup script:
My docker command: