以下是jenkins映像(2.190.2版)中用于安装插件的相关代码段:
FROM jenkins/jenkins:2.190.2
#......
# ......
# Add jenkins plugin
COPY plugins.txt /usr/share/jenkins/plugins.txt
RUN /usr/local/bin/plugins.sh /usr/share/jenkins/plugins.txt
在詹金斯1.642.1版本发布时,plugins.txt
列表下面的位置已准备好:
git:latest
git-client:latest
git-server:latest
github:latest
github-api:latest
github-branch-source:latest
docker-commons:latest
docker-workflow:latest
docker-build-publish:latest
dockerhub-notification:latest
aws-credentials:latest
aws-java-sdk:latest
amazon-ecs:latest
workflow-aggregator:latest
workflow-api:latest
workflow-basic-steps:latest
workflow-cps-global-lib:latest
workflow-cps:latest
workflow-durable-task-step:latest
workflow-job:latest
workflow-scm-step:latest
workflow-step-api:latest
workflow-support:latest
workflow-multibranch:latest
pipeline-stage-step:latest
pipeline-stage-view:latest
pipeline-input-step:latest
pipeline-build-step:latest
pipeline-rest-api:latest
icon-shim:latest
async-http-client:latest
structs:latest
credentials:latest
plain-credentials:latest
ssh-credentials:latest
credentials-binding:latest
authentication-tokens:latest
momentjs:latest
handlebars:latest
scm-api:latest
mapdb-api:latest
subversion:latest
durable-task:latest
script-security:latest
mailer:latest
ace-editor:latest
jquery-detached:latest
cloudbees-folder:latest
branch-api:latest
zentimestamp:latest
token-macro:latest
jackson2-api:latest
以下是docker-compose logs
中的错误:
Attaching to docker-jenkins_jenkins_1
[36mjenkins_1 |[0m Running from: /usr/share/jenkins/jenkins.war
[36mjenkins_1 |[0m webroot:
.....
.......
[36mjenkins_1 |[0m java.io.IOException: SSH Credentials Plugin version 1.18 failed to load.
[36mjenkins_1 |[0m - Trilead API Plugin version 1.0.4 is older than required. To fix, install version 1.0.5 or later.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:33.848+0000 [id=32] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Credentials Binding Plugin v1.20 (credentials-binding)
[36mjenkins_1 |[0m java.io.IOException: Credentials Binding Plugin version 1.20 failed to load.
[36mjenkins_1 |[0m - SSH Credentials Plugin version 1.18 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:33.920+0000 [id=32] INFO j.b.a.SecurityProviderInitializer#addSecurityProvider: Initializing Bouncy Castle security provider.
[36mjenkins_1 |[0m 2019-11-11 17:40:34.255+0000 [id=32] INFO j.b.a.SecurityProviderInitializer#addSecurityProvider: Bouncy Castle security provider initialized.
[36mjenkins_1 |[0m 2019-11-11 17:40:34.256+0000 [id=27] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Docker Commons Plugin v1.15 (docker-commons)
[36mjenkins_1 |[0m java.io.IOException: Docker Commons Plugin version 1.15 failed to load.
[36mjenkins_1 |[0m - Credentials Binding Plugin version 1.20 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.261+0000 [id=27] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Pipeline: REST API Plugin v2.12 (pipeline-rest-api)
[36mjenkins_1 |[0m java.io.IOException: Pipeline: REST API Plugin version 2.12 failed to load.
[36mjenkins_1 |[0m - pipeline-graph-analysis version 1.4 is missing. To fix, install version 1.4 or later.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.262+0000 [id=27] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Pipeline: Stage View Plugin v2.12 (pipeline-stage-view)
[36mjenkins_1 |[0m java.io.IOException: Pipeline: Stage View Plugin version 2.12 failed to load.
[36mjenkins_1 |[0m - Pipeline: REST API Plugin version 2.12 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.263+0000 [id=27] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Jenkins Mailer Plugin v1.29 (mailer)
[36mjenkins_1 |[0m java.io.IOException: Jenkins Mailer Plugin version 1.29 failed to load.
[36mjenkins_1 |[0m - display-url-api version 2.3.1 is missing. To fix, install version 2.3.1 or later.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.264+0000 [id=27] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Pipeline: Basic Steps v2.18 (workflow-basic-steps)
[36mjenkins_1 |[0m java.io.IOException: Pipeline: Basic Steps version 2.18 failed to load.
[36mjenkins_1 |[0m - apache-httpcomponents-client-4-api version 4.5.5-3.0 is missing. To fix, install version 4.5.5-3.0 or later.
[36mjenkins_1 |[0m - Jenkins Mailer Plugin version 1.29 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.266+0000 [id=26] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Jenkins Git client plugin v3.0.0 (git-client)
[36mjenkins_1 |[0m java.io.IOException: Jenkins Git client plugin version 3.0.0 failed to load.
[36mjenkins_1 |[0m - apache-httpcomponents-client-4-api version 4.5.10-1.0 is missing. To fix, install version 4.5.10-1.0 or later.
[36mjenkins_1 |[0m - SSH Credentials Plugin version 1.18 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m - jsch version 0.1.55.1 is missing. To fix, install version 0.1.55.1 or later.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.267+0000 [id=26] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Jenkins GIT server Plugin v1.8 (git-server)
[36mjenkins_1 |[0m java.io.IOException: Jenkins GIT server Plugin version 1.8 failed to load.
[36mjenkins_1 |[0m - Jenkins Git client plugin version 3.0.0 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.268+0000 [id=26] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Pipeline: Shared Groovy Libraries v2.15 (workflow-cps-global-lib)
[36mjenkins_1 |[0m java.io.IOException: Pipeline: Shared Groovy Libraries version 2.15 failed to load.
[36mjenkins_1 |[0m - Jenkins GIT server Plugin version 1.8 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.270+0000 [id=26] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Pipeline v2.6 (workflow-aggregator)
[36mjenkins_1 |[0m java.io.IOException: Pipeline version 2.6 failed to load.
[36mjenkins_1 |[0m - Pipeline: Stage View Plugin version 2.12 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m - lockable-resources version 2.3 is missing. To fix, install version 2.3 or later.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.272+0000 [id=30] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Jenkins Git plugin v4.0.0 (git)
[36mjenkins_1 |[0m java.io.IOException: Jenkins Git plugin version 4.0.0 failed to load.
[36mjenkins_1 |[0m - Jenkins Git client plugin version 3.0.0 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.273+0000 [id=30] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin GitHub plugin v1.29.5 (github)
[36mjenkins_1 |[0m java.io.IOException: GitHub plugin version 1.29.5 failed to load.
[36mjenkins_1 |[0m - display-url-api version 2.0 is missing. To fix, install version 2.0 or later.
[36mjenkins_1 |[0m - Jenkins Git plugin version 4.0.0 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.275+0000 [id=30] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Jenkins Subversion Plug-in v2.12.2 (subversion)
[36mjenkins_1 |[0m java.io.IOException: Jenkins Subversion Plug-in version 2.12.2 failed to load.
[36mjenkins_1 |[0m - SSH Credentials Plugin version 1.18 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.281+0000 [id=27] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin CloudBees Docker Hub/Registry Notification v2.4.0 (dockerhub-notification)
[36mjenkins_1 |[0m java.io.IOException: CloudBees Docker Hub/Registry Notification version 2.4.0 failed to load.
[36mjenkins_1 |[0m - Docker Commons Plugin version 1.15 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.282+0000 [id=33] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Amazon Web Services SDK v1.11.670 (aws-java-sdk)
[36mjenkins_1 |[0m java.io.IOException: Amazon Web Services SDK version 1.11.670 failed to load.
[36mjenkins_1 |[0m - apache-httpcomponents-client-4-api version 4.5.10-2.0 is missing. To fix, install version 4.5.10-2.0 or later.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.283+0000 [id=29] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin CloudBees AWS Credentials Plugin v1.28 (aws-credentials)
[36mjenkins_1 |[0m java.io.IOException: CloudBees AWS Credentials Plugin version 1.28 failed to load.
[36mjenkins_1 |[0m - Amazon Web Services SDK version 1.11.670 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.284+0000 [id=29] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin CloudBees Docker Build and Publish plugin v1.3.2 (docker-build-publish)
[36mjenkins_1 |[0m java.io.IOException: CloudBees Docker Build and Publish plugin version 1.3.2 failed to load.
[36mjenkins_1 |[0m - Docker Commons Plugin version 1.15 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[36mjenkins_1 |[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.285+0000 [id=29] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Docker Pipeline v1.21 (docker-workflow)
[36mjenkins_1 |[0m java.io.IOException: Docker Pipeline version 1.21 failed to load.
[36mjenkins_1 |[0m - Pipeline: Basic Steps version 2.18 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
[36mjenkins_1 |[0m
[36mjenkins_1 |[0m 2019-11-11 17:40:34.286+0000 [id=29] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Amazon Elastic Container Service plugin v1.23 (amazon-ecs)
[36mjenkins_1 |[0m java.io.IOException: Amazon Elastic Container Service plugin version 1.23 failed to load.
[36mjenkins_1 |[0m - apache-httpcomponents-client-4-api version 4.5.5-3.0 is missing. To fix, install version 4.5.5-3.0 or later.
[36mjenkins_1 |[0m - CloudBees AWS Credentials Plugin version 1.28 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at java.lang.Thread.run(Thread.java:748)
[36mjenkins_1 |[0m 2019-11-11 17:40:34.287+0000 [id=29] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin GitHub Branch Source Plugin v2.5.8 (github-branch-source)
[36mjenkins_1 |[0m java.io.IOException: GitHub Branch Source Plugin version 2.5.8 failed to load.
[36mjenkins_1 |[0m - GitHub plugin version 1.29.5 failed to load. Fix this plugin first.
[36mjenkins_1 |[0m at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:922)
[36mjenkins_1 |[0m at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
[36mjenkins_1 |[0m at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
[36mjenkins_1 |[0m at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
第一次通过localhost:8080
连接到jenkins之后,我只是使用了初始密码,并且没有配置其他任何内容,而是以admin身份登录。
在上述插件列表中,需要更改2.190.2版jenkins的缺少依赖项。
如何解决这些插件依赖性问题?适用于jenkins 2.190.2版本
答案 0 :(得分:1)
您遇到了许多问题。如您所说,您正在使用jenkins:2.190.2,但是您的插件列表来自:jenkins:1.647(2016/02/04)。不仅在主要方面,而且在每个LTS以及插件中,都发生了很多变化。
docker/plugins.sh
已被docker/install-plugins.sh
取代。用法here。
echo“警告:不推荐使用plugins.sh,请切换到install-plugins.sh”
install-plugins.sh
将解决并下载plugins的所有依赖项(每个插件列表在网站的详细信息中列出了它们),因此托管列表可以更短。只要列出您需要的顶级插件,它将解决所有依赖性。 Maven插件也逐渐删除了未使用的依赖项。
NB:如果需要已知的配置(不是最新的),请使用最新的主列表运行一次,然后检入该列表和已解决的列表。将已解析的列表供入Docker实例。
您可以使用此脚本来简化列表:
println "Jenkins Instance : " + Jenkins.getInstance().getComputer('').getHostName() + " - " + Jenkins.getInstance().getRootUrl()
println "Installed Plugins: "
println "=================="
Jenkins.instance.pluginManager.plugins.sort(false) { a, b -> a.getShortName().toLowerCase() <=> b.getShortName().toLowerCase()}.each { plugin ->
println "${plugin.getShortName()}:${plugin.getVersion()} | ${plugin.getDisplayName()} "
}
println""
println "Plugins Dependency tree (...: dependencies; +++: dependants) :"
println "======================="
Jenkins.instance.pluginManager.plugins.sort(false) { a, b -> a.getShortName().toLowerCase() <=> b.getShortName().toLowerCase()}.each { plugin ->
println "${plugin.getShortName()}:${plugin.getVersion()} | ${plugin.getDisplayName()} "
println "+++ ${plugin.getDependants()}"
println "... ${plugin.getDependencies()}"
println ''
}
或者您可以使用w ::
credentials-binding
workflow-aggregator
docker-plugin
amazon-ecs
例如,工作流聚合器:2.6(管道)插入:
... [lockable-resources (2.3), pipeline-stage-view (2.10), workflow-api (2.29), workflow-basic-steps (2.11), workflow-cps-global-lib (2.11), workflow-cps (2.56), workflow-durable-task-step (2.22), workflow-job (2.25), workflow-multibranch (2.20), workflow-scm-step (2.6), workflow-step-api (2.16), workflow-support (2.20), cloudbees-folder (6.6), credentials (2.1.18), git-client (2.7.3), jackson2-api (2.8.11.3), pipeline-build-step (2.7), pipeline-input-step (2.8), pipeline-milestone-step (1.3.1), pipeline-stage-step (2.3), scm-api (2.2.8), structs (1.15), pipeline-model-definition (1.3.2)]
,直到覆盖您的列表为止。您可能希望删除或替换某些内容(例如:zentimestamp)。
我在DevOps answer中回答了类似的插件升级问题。除了依赖关系列表可以针对每个插件版本进行更改之外(因此自动依赖关系解析==好),Jenkins一直在逐步取消插件的捆绑。它们提供了split-plugins.txt列表以供参考(另请参阅split-plugin-cycles.txt)。三头蛇是清单上最新的。似乎您的插件之一取决于以前捆绑的版本(因此您有1.0.4的副本),但与您的显式plugins.txt
无关,并且plugins.sh
不会提取依赖项。
NB:您可能会发现,在更新版本的插件明确声明依赖关系之前,您可能暂时必须显式包括未捆绑的插件。
还有插件/发行版兼容性的问题,可能不适用于您的情况。插件都依赖于基本的Jenkins版本,因此,如果运行旧的Jenkins版本,将无法加载新版本。反之亦然:未更新的插件可能会在较新的Jenkins上损坏。 Update Centre(和documentation )对此进行了说明。
最后,在升级Jenkins版本时,您应该查看Upgrade Guide和LTS Changelog。 Same for plugins。 move plugin documentations and changelogs into the repos有一项重大举措。仅仅依靠latest
并期望一切正常,这是信念的飞跃。