java.io.IOException: Pipeline: Declarative v1.3.2 failed to load.
 - You must update Jenkins from v2.60.3 to v2.73.3 or later to run this plugin.
 - Pipeline: Shared Groovy Libraries v2.12 failed to load. Fix this plugin first.
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:626)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:516)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
    at jenkins.model.Jenkins$7.runTask(Jenkins.java:1090)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

在这里插入图片描述
必须从jenkins v2.60升级到v2.138.
造成这一步的原因是镜像不是使用最新的版本导致的,直接使用如下命令会报错

docker pull jenkins:latest 这是错误的

首先在docker官方仓库网页搜索jenkins的镜像。注意,要安装的是 jenkins/jenins:lts,不是jenins,后者已经被官方废弃了。
应该安装如下

docker pull jenkins/jenkins:lts
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐