Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
486 views
in Technique[技术] by (71.8m points)

sonarqube - Update center behind proxy : howto with https bintray repository?

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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 :-).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...