安装Jenkins,需要安装插件的时候发现插件页面是空的,查看启动日志时也发现一堆报错
19-Sep-2016 09:52:50.382 SEVERE [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployWARs Error waiting for multi-thread deployment of WAR files to complete java.lang.InterruptedException at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:404) at java.util.concurrent.FutureTask.get(FutureTask.java:191) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:744) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:407) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1595) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:280) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1136) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1372) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1376) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1344) at java.lang.Thread.run(Thread.java:745)
谷歌百度了一堆,也没找到具体的原因。
后来在Jenkins home directory 找到了这个文件 hudson.model.UpdateCenter.xml.
只需要把文件清空,写入如下内容即可。
<?xml version=‘1.0‘ encoding=‘UTF-8‘?> <sites> <site> <id>default</id> <url>https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/stable-2.7/update-center.json</url> </site> </sites>
So easy!!!
时间: 2024-11-05 23:31:19