欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Please wait while Jenkins is getting ready to work ...

程序员文章站 2022-07-11 10:39:09
...

Please wait while Jenkins is getting ready to work …

在Linux在安装好了Jenkins之后,访问Jenkins,一直出现Please wait while Jenkins is getting ready to work …,打开F12控制台发现一直报错如下:ERROR 503: Service Unavailable.

解决方案如下:
进入Jenkins的工作目录(/var/lib/jenkins),编辑hudson.model.UpdateCenter.xml文件

完整命令:

vi /var/lib/jenkins/hudson.model.UpdateCenter.xml

https://updates.jenkins.io/update-center.json修改为http://mirror.xmission.com/jenkins/updates/update-center.json
如下图所示:
Please wait while Jenkins is getting ready to work ...
保存后重启Jenkins

systemctl restart jenkins

再次访问,就会出现如下界面:
Please wait while Jenkins is getting ready to work ...

大功告成!

顺便提一句:Jenkinx的密码保存在/var/lib/jenkins/secrets/initialAdminPassword该文件中,只需要编辑或查看此文件就可以获取密码

cat /var/lib/jenkins/secrets/initialAdminPassword