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

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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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
      

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          core/src/main/java/hudson/ClassicPluginStrategy.java
          http://jenkins-ci.org/commit/jenkins/9bd13323c84c38f98091e2deffed0b7ae1cc5d68
          Log:
          JENKINS-51608 - Improve diagnostics of errorneous cases in ClassicPluginStrategy#getShortName()

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/src/main/java/hudson/ClassicPluginStrategy.java http://jenkins-ci.org/commit/jenkins/9bd13323c84c38f98091e2deffed0b7ae1cc5d68 Log: JENKINS-51608 - Improve diagnostics of errorneous cases in ClassicPluginStrategy#getShortName()
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          core/src/main/java/hudson/ClassicPluginStrategy.java
          http://jenkins-ci.org/commit/jenkins/ec10b8cff75cd8b1286991889a9c0bb5b7d26007
          Log:
          Merge pull request #3464 from oleg-nenashev/bug/JENKINS-51608

          JENKINS-51608 - Improve diagnostics of errorneous cases in ClassicPluginStrategy#getShortName()

          Compare: https://github.com/jenkinsci/jenkins/compare/8c1b8b8e1442...ec10b8cff75c
          *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

          Functionality will be removed from GitHub.com on January 31st, 2019.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/src/main/java/hudson/ClassicPluginStrategy.java http://jenkins-ci.org/commit/jenkins/ec10b8cff75cd8b1286991889a9c0bb5b7d26007 Log: Merge pull request #3464 from oleg-nenashev/bug/ JENKINS-51608 JENKINS-51608 - Improve diagnostics of errorneous cases in ClassicPluginStrategy#getShortName() Compare: https://github.com/jenkinsci/jenkins/compare/8c1b8b8e1442...ec10b8cff75c * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Fixed in Remoting 3.21 and Jenkins 2.127

          Show
          oleg_nenashev Oleg Nenashev added a comment - Fixed in Remoting 3.21 and Jenkins 2.127

            People

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

              Dates

              • Created:
                Updated:
                Resolved: