繁体   English   中英

错误:java.io.IOException:无法在 jenkins 中的 Z05EAF6053C45A8BDA21 中动态部署此插件

[英]Error: java.io.IOException: Failed to dynamically deploy this plugin, on jenkins in docker

I have installed docker then java image then jenkins image, now installing its dependencies, gives following error in logs, any Idea how can it be resolved, as I am from rails background so don't have much knowledge about java error and exceptions, please提供建议。

May 31, 2020 9:41:30 AM hudson.model.UpdateCenter$DownloadJob run
INFO: Starting the installation of Pipeline: Job on behalf of admin
May 31, 2020 9:41:32 AM hudson.model.UpdateCenter$UpdateCenterConfiguration download
INFO: Downloading Pipeline: Job
May 31, 2020 9:41:33 AM hudson.PluginManager dynamicLoad
INFO: Attempting to dynamic load /var/jenkins_home/plugins/workflow-job.jpi
May 31, 2020 9:41:33 AM hudson.model.UpdateCenter$DownloadJob run
SEVERE: Failed to install Pipeline: Job
java.io.IOException: Failed to dynamically deploy this plugin
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1893)
    at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1651)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Failed to install workflow-job plugin
    at hudson.PluginManager.dynamicLoad(PluginManager.java:874)
    at hudson.PluginManager.dynamicLoad(PluginManager.java:813)
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1889)
    ... 5 more
Caused by: java.io.IOException: Pipeline: Job v2.39 failed to load.
 - You must update Jenkins from v2.60.3 to v2.138.4 or later to run this plugin.
 - Pipeline: API v2.40 failed to load. Fix this plugin first.
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:626)
    at hudson.PluginManager.dynamicLoad(PluginManager.java:864)
    ... 7 more

在此处输入图像描述

您安装了哪个 Jenkins 版本?
似乎插件不支持过时的 Jenkins 版本。
尝试从“入门”中跳过插件安装,稍后再安装。

此外,您可以尝试使用官方 Jenkins docker 图像。
https://www.jenkins.io/blog/2018/12/10/the-official-Docker-image/

我有同样的问题,并尝试使用 v2.60.3 和其他版本。

LTS 版本工作并安装插件。

$ docker pull jenkins/jenkins:lts

$ docker run -p 8080:8080 -p 50000:50000 --name myjenkins jenkins/jenkins:lts

页面中有弃用通知如下https://hub.docker.com/_/jenkins?tab=description

我有同样的问题,这是因为在文件夹“/home/user/.jenkins/”中有旧的 jenkins 配置,只需将其删除或备份它,以便在您新的 Jenkins 安装开始时,它将创建一个新的“ .jenkins/" 带有空 conf 的文件夹。

并且不要忘记您确实已经卸载了旧的 jenkins 版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM