小编典典

无法动态部署此插件:Jenkins

jenkins

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

在安装过程中Download Now and Install afterRestart,我的詹金斯(Jenkins)需要花费很长时间才能重新启动,因此我尝试使用Install withoutrestart

它显示以下错误

 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

请帮忙。

谢谢!


阅读 908

收藏
2020-07-25

共1个答案

小编典典

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

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

2020-07-25