Jenkins 配置代理。


方法一:

http://192.115.0.2:9000/pluginManager/advanced 页面

这个 URL 改成
http://mirror.xmission.com/jenkins/updates/update-center.json 或
https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json

 

方法二:

1. host 添加 解析  127.0.0.1 updates.jenkins-ci.org

2. 本地 apache 服务器 反向代理

listen 80
<VirtualHost *:80>
 SSLProxyEngine on 
  
ProxyPass "/download/plugins"  "https://mirrors.tuna.tsinghua.edu.cn/jenkins/plugins/"

</VirtualHost>

注意 : 不加   " SSLProxyEngine on  " 会导致 无法代理 https! 会导致 500,具体错误可以看 服务器下的 logs/error.log!

 

不知为何,方法一 始终不起作用。。只能使用 方法二。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM