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

Credentials plugin (v2.3.15) fails to load when optional dependency is at lower version

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • credentials-plugin
    • None
    • Jenkins 2.263.2. Plugins: kubernetes-plugin v1.28.2, configuration-as-code v1.46, git v4.5.0, workflow-aggregator v2.6

      Configuration as Code plugin is listed as optional dependency. However during Jenkins startup credentials plugin fails to load due to following error: 

       

      [id=27] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Credentials Plugin v2.3.15 (credentials)[id=27] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Credentials Plugin v2.3.15 (credentials)java.io.IOException: Failed to load: Credentials Plugin (2.3.15) - Update required: Configuration as Code Plugin (1.46) to be updated to 1.47 or higher at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:952) at hudson.PluginManager$2$1$1.run(PluginManager.java:549) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

      Expected behaviour is for optional dependency not to be the cause of plugin loading failure. 

       

          [JENKINS-64915] Credentials plugin (v2.3.15) fails to load when optional dependency is at lower version

          Pasha Sh. added a comment -

          Seeing the same issue with a newer version of credentials plugin v2.4.1. It lists configuration-as-code as optional yet fails to load if older version is present. 

          From update-center.json:

          "credentials": {
            "buildDate": "May 12, 2021",
            "defaultBranch": "master",
            "dependencies": [
              {
                "name": "configuration-as-code",
                "optional": true,
                "version": "1.50"
              }
          

          Then from Jenkins startup error:

           

          SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Credentials Plugin v2.4.1 (credentials)
          java.io.IOException: Failed to load: Credentials Plugin (2.4.1) - Update required: Configuration as Code Plugin (1.47) to be updated to 1.50 or higher

           

           

          Pasha Sh. added a comment - Seeing the same issue with a newer version of credentials plugin v2.4.1. It lists configuration-as-code as optional yet fails to load if older version is present.  From update-center.json: "credentials" : { "buildDate" : "May 12, 2021" , "defaultBranch" : "master" , "dependencies" : [ { "name" : "configuration-as-code" , "optional" : true , "version" : "1.50" } Then from Jenkins startup error:   SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Credentials Plugin v2.4.1 (credentials) java.io.IOException: Failed to load: Credentials Plugin (2.4.1) - Update required: Configuration as Code Plugin (1.47) to be updated to 1.50 or higher    

            Unassigned Unassigned
            pashcan Pasha Sh.
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: