【问题标题】:Failed to dynamically deploy this plugin : Jenkins无法动态部署此插件:Jenkins
【发布时间】:2014-05-23 05:43:59
【问题描述】:

我尝试安装 SVN Publisher 以将 Jenkins 连接到 Subversion 存储库。

当我通过Download Now and Install after Restart 安装时,我的 Jenkins 需要很长时间才能安装到restart,所以我尝试使用Install without restart

显示如下错误

 Failure -

java.io.IOException: Failed to dynamically deploy this plugin
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1308)
    at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1107)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:104)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Failed to expand C:\tomcat\webapps\.jenkins\plugins\svnpublisher.jpi
    at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:460)
    at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:126)
    at hudson.PluginManager.dynamicLoad(PluginManager.java:415)
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1304)
    ... 5 more
Caused by: Error while expanding C:\tomcat\webapps\.jenkins\plugins\svnpublisher.jpi
java.util.zip.ZipException: archive is not a ZIP archive
    at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
    at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
    at hudson.ClassicPluginStrategy.unzipExceptClasses(ClassicPluginStrategy.java:532)
    at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:457)
    ... 8 more
Caused by: java.util.zip.ZipException: archive is not a ZIP archive
    at org.apache.tools.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:481)
    at org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:320)
    at org.apache.tools.zip.ZipFile.<init>(ZipFile.java:186)
    at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:170)
    ... 11 more

请帮忙。

谢谢!

【问题讨论】:

    标签: svn jenkins


    【解决方案1】:

    下载过程中似乎出现问题,导致插件文件损坏。关闭 Jenkins,删除C:\tomcat\webapps\.jenkins\plugins\svnpublisher.jpi,重新启动 jenkins 并重新尝试安装插件。

    或者手动下载文件并替换为文件系统上的文件,它应该可以从这里获得https://updates.jenkins-ci.org/download/plugins/

    【讨论】:

    • 你能帮我把我的 .jenkins 文件夹从 C:\tomcat\webapps\.jenkins 移动到 C:\.jenkins\
    • 我没有使用 Windows 版本,没有在 tomcat 上安装 Jenkins。所以一般重命名应该起作用:关闭应用服务器,重命名应用文件夹,启动tomcat。对于 win 上的 jenkins,我不知道其他地方是否有定义 JENKINS_HOME 的配置文件,或者重命名是否会影响将 jenkins 作为 Windows 服务运行,也许启动 wiki.jenkins-ci.org/display/JENKINS/… 看看可能有什么影响。
    猜你喜欢
    • 2020-02-26
    • 2012-02-18
    • 1970-01-01
    • 2021-10-28
    • 2017-04-25
    • 1970-01-01
    • 1970-01-01
    • 2013-11-30
    • 2016-05-15
    相关资源
    最近更新 更多