我刚刚在EC2机器上安装了Jenkins。 Jenkins通过Apache在端口443上提供SSL服务。我还没有购买证书,因此https连接不安全。
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName my_host_name
ServerAlias ci
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
ProxyRequests Off
ProxyPreserveHost off
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
<Proxy http://localhost:8080/*>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>
Jenkins拒绝更新我的插件。我在Manage Jenkins
→Manage Plugins
→advanced
检查了网址,结果为http://updates.jenkins-ci.org/update-center.json。我尝试从服务器上的curl
下载文件,下载时没有问题。
为什么Jenkins不能下载json文件以获取更新?
答案 0 :(得分:1)
通过使用url的安全coutnerpart
来解决这个问题https://updates.jenkins-ci.org/update-center.json
而不是:
http://updates.jenkins-ci.org/update-center.json