我刚在Ubuntu 12.04LTS上安装了Jenkins 1.575。 当我去插件部分添加插件,什么也没有显示。 如果我去高级并点击现在检查,它只是挂在更新….
我与Jenkins有关的nginx.conf:
http { server { listen 80 default; server_name _; location /{ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_pass http://127.0.0.1:8080/; proxy_set_header X-Real-IP $remote_addr; proxy_redirect http://localhost:8080 $scheme://localhost; } } .....
任何线索如何解决这个问题?
我认为你的nginx设置是好的,也许你可以尝试重新启动你的jenkins。
$ sudo /etc/init.d/jenkins restart
这是我的jenkins Nginx的站点conf。
$ sudo vi /etc/nginx/sites-enabled/jenkins server { listen *:80; [...] location / { proxy_pass http://127.0.0.1:8080/; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; } [...] }
我在@rcomblen中find了一个解决scheme(至less是临时的): https ://stackoverflow.com/questions/16213982/unable-to-find-plugins-in-list-of-available-plugins-in-jenkins
它有你手动下载插件列表并发布给jenkins。 我认为这个问题可能与我的VPN有关。 vpn安装的不好,不能通过vpn连接到互联网。 所以当我点击button来更新插件列表时,我想它会尝试从我的浏览器而不是服务器上下载,Jenkins也无法下载插件列表。
在尝试了很多东西和search几个小时后,我终于把jenkins升级到了版本1.638。 这有助于解决老版本jenkins中空的可用插件的沮丧问题!