Update center behind proxy : howto with https bintray repository?

后端 未结 3 1549
庸人自扰
庸人自扰 2020-12-15 06:54

Recently, SonarQube uses the bintray repository for package distribution, in https (see update-center.properties).

Using the update center behind a

相关标签:
3条回答
  • 2020-12-15 07:04

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

    0 讨论(0)
  • 2020-12-15 07:09

    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:

    RUN sed -i -e 's/-Djava.security.egd=/-Dhttps.proxyHost=proxy.mycompany.com -Dhttps.proxyPort=8080 -Dhttp.proxyHost=proxy.mycompany.com -Dhttp.proxyPort=8080 -Djava.security.egd=/g' /opt/sonarqube/bin/run.sh
    
    0 讨论(0)
  • 2020-12-15 07:13

    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

    0 讨论(0)
提交回复
热议问题