Failed to dynamically deploy this plugin : Jenkins

倾然丶 夕夏残阳落幕 提交于 2019-12-21 17:44:04

问题


I try to install the SVN Publisher for connecting Jenkins to Subversion Repository.

As I install through Download Now and Install after Restart, My Jenkins is taking so long time to restart so I tried with Install without restart.

It shows the following error

 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

Please help.

Thanks!


回答1:


It looks that there has been an issue during download so that plugin file got corrupted. Shutdown Jenkins, delete C:\tomcat\webapps\.jenkins\plugins\svnpublisher.jpi, restart jenkins and reattempt plugin installation.

Alternatively download file manually and replace with one on file system, it should be available from here https://updates.jenkins-ci.org/download/plugins/



来源:https://stackoverflow.com/questions/23821756/failed-to-dynamically-deploy-this-plugin-jenkins

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!