代理后面的更新中心:如何使用 https bintray 存储库?
Update center behind proxy : howto with https bintray repository?
最近,SonarQube 使用 bintray 存储库进行包分发,in https(参见 update-center.properties)。
使用代理后面的更新中心,找到了一些更新,但在升级时,错误(此处为 xml 插件):
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))
SonarQube:DefaultHttpDownloader 似乎不支持 https.proxyXXX 属性.
今天有办法使用这些插件的更新中心吗?
@SonarSource:sonar.properties
将来可以支持此功能吗?或者为 bintray 存储库声明 http url(但邪恶)?
谢谢
Is there today a mean to use the update center for these plugins ?
在sonar.properties
中使用sonar.web.javaAdditionalOpts
参数来声明https.proxyXXX
属性:
sonar.web.javaAdditionalOpts=-Dhttps.proxyHost=proxy.company.com -Dhttps.proxyPort=80 -Dhttps.proxyUser=myUser -Dhttps.proxyPassword=myPassword
注意事项 :
https.proxyUser
/https.proxyPassword
如果与http.proxyUser
/http.proxyPassword
相同则无用配置。
- 此答案已通过 SonarQube v4.5 系列测试
也许有一天某些特定的属性将在 SonarQube 配置中可用 :-)。
我尝试在 sonar.properties 中更新 sonar.web.javaAdditionalOpts,但设置没有被拾取(使用 sonarqube:5.1.1 docker 图像)。
我不得不调整启动脚本:
我的 docker 命令:
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
SonarQube 5.5 终于支持属性 https.proxyHost
和 https.proxyPort
。感谢 Alix 的反馈。
https://jira.sonarsource.com/browse/SONAR-7429
最近,SonarQube 使用 bintray 存储库进行包分发,in https(参见 update-center.properties)。
使用代理后面的更新中心,找到了一些更新,但在升级时,错误(此处为 xml 插件):
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))
SonarQube:DefaultHttpDownloader 似乎不支持 https.proxyXXX 属性.
今天有办法使用这些插件的更新中心吗?
@SonarSource:sonar.properties
将来可以支持此功能吗?或者为 bintray 存储库声明 http url(但邪恶)?
谢谢
Is there today a mean to use the update center for these plugins ?
在sonar.properties
中使用sonar.web.javaAdditionalOpts
参数来声明https.proxyXXX
属性:
sonar.web.javaAdditionalOpts=-Dhttps.proxyHost=proxy.company.com -Dhttps.proxyPort=80 -Dhttps.proxyUser=myUser -Dhttps.proxyPassword=myPassword
注意事项 :
https.proxyUser
/https.proxyPassword
如果与http.proxyUser
/http.proxyPassword
相同则无用配置。- 此答案已通过 SonarQube v4.5 系列测试
也许有一天某些特定的属性将在 SonarQube 配置中可用 :-)。
我尝试在 sonar.properties 中更新 sonar.web.javaAdditionalOpts,但设置没有被拾取(使用 sonarqube:5.1.1 docker 图像)。
我不得不调整启动脚本:
我的 docker 命令:
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
SonarQube 5.5 终于支持属性 https.proxyHost
和 https.proxyPort
。感谢 Alix 的反馈。
https://jira.sonarsource.com/browse/SONAR-7429