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

IllegalStateException when installing plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      jenkins 2.32.1
      config-file-provider 2.15.3
      fresh installation, only support-core plugin installed to gather support bundle.
    • Similar Issues:

      Description

      Steps to reproduce:

      • Go to Manage plugins and install config-file-provider plugin.
      • DO NOT restart.
      • See error in logs (attached together with Support Bundle).

      Actual behaviour:

      • Sometimes plugin is not available (not accessible in configuration or folder) until Jenkins is restarted.

      Expected behaviour:

      • Plugin is always available without a restart.

      The constructor for ConfigFilesManagement class is calling static method GlobalConfigFiles.get(), which is requesting Jenkins for an instance of this class. Sometimes this seems to be made before Jenkins actually processes the class.

        Attachments

          Issue Links

            Activity

            Hide
            egutierrez Evaristo Gutierrez added a comment -

            Dominik Bartholdi I filed this PR which I think solves the issue.

            Show
            egutierrez Evaristo Gutierrez added a comment - Dominik Bartholdi I filed this PR which I think solves the issue.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Evaristo Gutiérrez
            Path:
            src/main/java/org/jenkinsci/plugins/configfiles/GlobalConfigFiles.java
            http://jenkins-ci.org/commit/config-file-provider-plugin/408bca72af97c6cd0c757535359abdaa98908ca9
            Log:
            JENKINS-40981 Request the instance from ExtensionList. Also set an ordinal for a proper extension order.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Evaristo Gutiérrez Path: src/main/java/org/jenkinsci/plugins/configfiles/GlobalConfigFiles.java http://jenkins-ci.org/commit/config-file-provider-plugin/408bca72af97c6cd0c757535359abdaa98908ca9 Log: JENKINS-40981 Request the instance from ExtensionList. Also set an ordinal for a proper extension order.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Dominik Bartholdi
            Path:
            src/main/java/org/jenkinsci/plugins/configfiles/GlobalConfigFiles.java
            http://jenkins-ci.org/commit/config-file-provider-plugin/4be44b0d515f24e724f16d7632888ba9a92e45ac
            Log:
            Merge pull request #30 from varyvol/JENKINS-40981

            [FIXED JENKINS-40981] IllegalStateException when installing plugin

            Compare: https://github.com/jenkinsci/config-file-provider-plugin/compare/6d524f7e84b5...4be44b0d515f

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Dominik Bartholdi Path: src/main/java/org/jenkinsci/plugins/configfiles/GlobalConfigFiles.java http://jenkins-ci.org/commit/config-file-provider-plugin/4be44b0d515f24e724f16d7632888ba9a92e45ac Log: Merge pull request #30 from varyvol/ JENKINS-40981 [FIXED JENKINS-40981] IllegalStateException when installing plugin Compare: https://github.com/jenkinsci/config-file-provider-plugin/compare/6d524f7e84b5...4be44b0d515f

              People

              • Assignee:
                domi Dominik Bartholdi
                Reporter:
                egutierrez Evaristo Gutierrez
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: