当前位置:网站首页>Three solutions for Jenkins image failing to update plug-in Center
Three solutions for Jenkins image failing to update plug-in Center
2022-06-24 15:39:00 【Exclusive rainy days】
stay adopt Docker Image mount Jenkins Under the circumstances , Every time I will meet you in Jenkins The plug-in cannot be installed , All plug-ins failed to install .
adopt Docker logs Container name
To view the actual running log . for example ,docker logs myjenkins -f
Real time output myjenkins Container log , The tips are as follows :
Caused: java.io.IOException: Failed to load http://updates.jenkins-ci.org/download/plugins/antisamy-markup-formatter/1.6/antisamy-markup-formatter.hpi to /var/jenkins_home/plugins/antisamy-markup-formatter.jpi.tmp
at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1217)
Caused: java.io.IOException: Failed to download from http://updates.jenkins-ci.org/download/plugins/antisamy-markup-formatter/1.6/antisamy-markup-formatter.hpi (redirected to: http://mirrors.jenkins-ci.org/plugins/antisamy-markup-formatter/1.6/antisamy-markup-formatter.hpi)
It means ,docker The container cannot be removed from http://updates.jenkins-ci.org/download/plugins/
Download at link Jenkin plug-in unit .
adopt Jenkins Of Github You can see ( link jenkinsci/docker) , The official settings let us set up the plug-in Center .
about Jenkin Plug in center settings , Mainly related Docker The container environment variables are described as follows :
JENKINS_UC
: The main plug-in Update Center , Would provide Jenkin Long term supported versions . The default value is https://updates.jenkins.io.JENKINS_UC_EXPERIMENTAL
: Major plug-in development / Experimental version update Center .JENKINS_UC_DOWNLOAD
: Download link from plug-in Update Center , The default is$JENKINS_UC/downloads
.
Scheme 1 : therefore , A lot of users , To solve this problem , I will try again Jenkins Images, Then overwrite this JENKINS_UC_DOWNLOAD
Parameters , Or when you start the container , Reload this JENKINS_UC_DOWNLOAD
Parameters .
I have not tried , But this method should be feasible .( The main reason is that I am lazy and don't want to do this , Because most of the installation has been completed , I don't want to do it again , So I mainly tried the following scheme )
Option two : With root Of users entering the container , Then update the mirror source . Wait for the update to complete , It can usually solve the network problem Jenkins The plug-in center network is unreachable .
docker exec -it -u root myjenkins bash
apt-get update
Option three : ( recommend ) Continue in the plug-in installation interface , After registration Admin Login after account , stay jenkins --> Manage Jenkins --> Manage Plugins --> Advanced
Select Update... In the options of Update Site. The source will be updated https://updates.jenkins-ci.org/update-center.json Replace with http://mirror.esuni.jp/jenkins/updates/update-center.json. Note that the replacement does not have (https).
After the above method is tried , Can be in Jenkins -> Update Center
See the following successful interface :
Although there are still some plug-ins that can not be updated normally , But it doesn't matter .
Reference documents :
- How can I get docker container root’s password - Stack Overflow
- Can’t download plugins from https://updates.jenkins.io/download/plugins/ with install-plugins.sh · Issue #594 · jenkinsci/docker
- 【Devops】【Jenkins】Jenkins Handling method of plug-in installation failure - Angel A squeeze - Blog Garden
- docker/README.md at master · jenkinsci/docker
边栏推荐
- Vim编辑器的最常用的用法
- Motion planning of floating base robot
- Arrays API
- VIM common shortcut keys
- Differential privacy
- 熬夜整理出的软件测试【高频】面试题大全(2022最新)
- Since the household appliance industry has entered the era of stock competition, why does Suning win the first channel for consecutive times?
- Decomposition of Uber dependency injection into dig source code analysis
- leetcode 139. Word break word split (medium)
- Data stack technology sharing: how to use data stack for data collection?
猜你喜欢
为什么企业实施WMS仓储管理系统很容易失败
CVPR 2022 - Interpretation of selected papers of meituan technical team
熬夜整理出的软件测试【高频】面试题大全(2022最新)
VNC Viewer方式的远程连接树莓派
国产芯片的赶超,让美国手机芯片龙头高通害怕了,出招应对竞争
MongoDB入門實戰教程:學習總結目錄
国产最长寿的热销手机,苹果也不是对手,总算让国产手机找回面子
推荐几款超级实用的数据分析利器
clang: warning: argument unused during compilation: ‘-no-pie‘ [-Wunused-command-line-argument]
刚刚阿里面软件测试回来,3+1面任职阿里P7,年薪28*15薪
随机推荐
Left hand code, right hand open source, part of the open source road
【Prometheus】5. Alertmanager alarm (incomplete)
Kubernetes practical tips: using ksniff to capture packets
update+catroot+c000021a+critical service failed+drivers+intelide+viaide+000000f
New de debugging
At? Let's blow the air conditioner together!
Phpcms upgrade editor method -- simple and effective
Very exciting! 12000 words summarized the theory of network technology, reviewing the old and learning the new
【我的OpenGL学习进阶之旅】OpenGL的坐标系的学习笔记
Concurrent writing of maps in golang
国产芯片的赶超,让美国手机芯片龙头高通害怕了,出招应对竞争
MySQL binlog
Bitmap of redis data structure
Remember: never use UTF-8 in MySQL
QTreeWidget作为单例模式以dll返回的两个问题
Use list
Redis highly available
Improving the classification of motor imagery by combining EEG and MEG signals in BCI
SF express: please sign for MySQL soul ten
证券账户理财安全吗??