我正在尝试将Jenkins工作流插件安装到Jenkins 1.641安装中。我已经下载了最新版本的插件(v1.12 - https://wiki.jenkins-ci.org/display/JENKINS/Workflow+Plugin)。在尝试上传和安装时,我收到此错误: -
java.io.IOException: Failed to dynamically deploy this plugin
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1383)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1161)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Failed to install workflow-aggregator plugin
at hudson.PluginManager.dynamicLoad(PluginManager.java:487)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1379)
... 5 more
Caused by: java.io.IOException: Dependency workflow-basic-steps (1.12), workflow-scm-step (1.12), workflow-cps-global-lib (1.12), workflow-support (1.12), workflow-job (1.12), workflow-durable-task-step (1.12), workflow-cps (1.12), workflow-api (1.12), workflow-step-api (1.12) doesn't exist
at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:533)
at hudson.PluginManager.dynamicLoad(PluginManager.java:477)
... 6 more
有人能说出问题的原因吗?
由于
答案 0 :(得分:2)
您必须从更新中心安装Pipeline (formerly known as Workflow) 1.13
(或Workflow Aggregator 1.12
,如果您想要1.12而不是1.13),请不要尝试手动安装(或者您必须全部安装)手动依赖项,如日志中指出的那样:Dependency workflow-basic-steps (1.12), workflow-scm-step (1.12), workflow-cps-global-lib (1.12), workflow-support (1.12), workflow-job (1.12), workflow-durable-task-step (1.12), workflow-cps (1.12), workflow-api (1.12), workflow-step-api (1.12) doesn't exist
)
答案 1 :(得分:0)
问题的原因是,工作流聚合器只是工作流程的一部分,取决于其他插件部分。
其他部分可在此处找到:
Caused by: java.io.IOException: Dependency workflow-basic-steps (1.12), workflow-scm-step (1.12), workflow-cps-global-lib (1.12), workflow-support (1.12), workflow-job (1.12), workflow-durable-task-step (1.12), workflow-cps (1.12), workflow-api (1.12), workflow-step-api (1.12) doesn't exist
简单的解决方案是使用amuniz建议的更新中心。
如果您在受监管的环境中开发并需要对已安装的插件进行更多控制或需要可重现的环境,请下载所有相关插件。
我没有找到工作流程部分的链接(依赖关系链接到同一页面),因此您可以通过使用以下patern的下载URL来解决该问题:
updates.jenkins-ci.org/latest/<plugin-name>.hpi
示例:
updates.jenkins-ci.org/latest/workflow-step-api.hpi
或者,如果您需要使用插件的特殊修订版:
http://updates.jenkins-ci.org/download/plugins/<plugin-name>/<revision>/<plugin-name>.hpi
示例:
http://updates.jenkins-ci.org/download/plugins/workflow-step-api/1.12/workflow-step-api.hpi