Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update center behind proxy : howto with https bintray repository?

Tags:

sonarqube

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

like image 474
Alix Lourme Avatar asked Jul 08 '15 14:07

Alix Lourme


2 Answers

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.
  • This answer has been tested with SonarQube v4.5 series

Perhaps one day some specific properties will be available in SonarQube config :-).

like image 99
Alix Lourme Avatar answered Oct 03 '22 09:10

Alix Lourme


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

like image 36
Simon Brandhof - SonarSource Avatar answered Oct 03 '22 09:10

Simon Brandhof - SonarSource