我尝试安装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
请帮忙。
谢谢!
答案 0 :(得分:1)
下载过程中出现问题,导致插件文件损坏。关闭Jenkins,删除C:\tomcat\webapps\.jenkins\plugins\svnpublisher.jpi
,重新启动jenkins并重新尝试插件安装。
或者手动下载文件并替换为文件系统上的文件,它应该可以在这里找到https://updates.jenkins-ci.org/download/plugins/