Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51608

ClassicPluginStrategy#getShortName() does not offer diagnostics about failure reasons

XMLWordPrintable

      It is a follow-up to https://github.com/jenkinsci/configuration-as-code-plugin/issues/242 . Due to whatever reason the method fails with a bad exception. Likely the file has wrong type or so, but diagnostics is missing

      jenkins_1  | Caused by: org.jenkinsci.plugins.casc.ConfiguratorException: Failed to download plugin git:3.8.0
      jenkins_1  | 	at org.jenkinsci.plugins.casc.plugins.PluginManagerConfigurator.configure(PluginManagerConfigurator.java:193)
      jenkins_1  | 	at org.jenkinsci.plugins.casc.plugins.PluginManagerConfigurator.configure(PluginManagerConfigurator.java:49)
      jenkins_1  | 	at org.jenkinsci.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:340)
      jenkins_1  | 	... 17 more
      jenkins_1  | Caused by: java.io.IOException: Failed to dynamically deploy this plugin
      jenkins_1  | 	at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1893)
      jenkins_1  | 	at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1651)
      jenkins_1  | 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      jenkins_1  | 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      jenkins_1  | 	at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:112)
      jenkins_1  | 	... 1 more
      jenkins_1  | Caused by: java.util.zip.ZipException: error in opening zip file
      jenkins_1  | 	at java.util.zip.ZipFile.open(Native Method)
      jenkins_1  | 	at java.util.zip.ZipFile.<init>(ZipFile.java:225)
      jenkins_1  | 	at java.util.zip.ZipFile.<init>(ZipFile.java:155)
      jenkins_1  | 	at java.util.jar.JarFile.<init>(JarFile.java:166)
      jenkins_1  | 	at java.util.jar.JarFile.<init>(JarFile.java:145)
      jenkins_1  | 	at hudson.ClassicPluginStrategy.getShortName(ClassicPluginStrategy.java:116)
      jenkins_1  | 	at hudson.PluginManager.dynamicLoad(PluginManager.java:835)
      jenkins_1  | 	at hudson.PluginManager.dynamicLoad(PluginManager.java:822)
      jenkins_1  | 	at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1889)
      jenkins_1  | 	... 5 more
      

            oleg_nenashev Oleg Nenashev
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: