虚拟机运行下载更新jenkins插件失败
jenkins安装更新插件失败,
java.io.IOException: Server returned HTTP response code: 503 for URL: https://get.jenkins.io/plugins/jquery/1.12.4-1/jquery.hpiat sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894)at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:263)at hudson.model.UpdateCenterUpdateCenterConfiguration.download(UpdateCenter.java:1302)Caused: java.io.IOException: Failed to download from https://updates.jenkins.io/download/plugins/jquery/1.12.4-1/jquery.hpi (redirected to: https://get.jenkins.io/plugins/jquery/1.12.4-1/jquery.hpi)at hudson.model.UpdateCenterDownloadJob._run(UpdateCenter.java:1893)at hudson.model.UpdateCenterDownloadJob.run(UpdateCenter.java:1867)at java.util.concurrent.ExecutorsWorker.run(AtmostOneThreadExecutor.java:121)at java.lang.Thread.run(Thread.java:748)如图
解决办法
一,有可能是下载源有问题
已知有三个源
https://updates.jenkins.io/update-center.json(或https://updates.jenkins.io/update-center.json) https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json
http://mirror.esuni.jp/jenkins/updates/update-center.json
具体位置
拉到最后,如下图换源
办法二,换网络
我整了一下午也没想到这么解决,最后一个技术大牛告诉我,换一下网络试试。
真的换成手机网络好了。开心