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!

 

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

posted on 2019-06-17 18:29  正义的伙伴!  阅读(12280)  评论(0编辑  收藏  举报

导航

//增加一段JS脚本,为目录生成使用