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

Folder loading can be broken by a NPE in a build wrapper in one job

XMLWordPrintable

      A user of the Artifactory plugin encountered an error which caused an entire folder to not load:

      ... SEVERE jenkins.InitReactorRunner$1 onTaskFailed 
      Failed Loading job <foldername>
      java.lang.NullPointerException 
      	at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator.getProjectActions(ArtifactoryGenericConfigurator.java:210) 
      	at hudson.model.Project.createTransientActions(Project.java:221) 
      	at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:739) 
      	at hudson.model.AbstractProject.onLoad(AbstractProject.java:334) 
      	at hudson.model.Project.onLoad(Project.java:90) 
      	at hudson.model.Items.load(Items.java:276) 
      	at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105) 
      	at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238) 
      	at hudson.model.Items.load(Items.java:276) 
      	at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105) 
      	at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238) 
      	at hudson.model.Items.load(Items.java:276) 
      	at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105) 
      	at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238) 
      	at hudson.model.Items.load(Items.java:276) 
      	at jenkins.model.Jenkins$18.run(Jenkins.java:2593) 
      	at ...
      

      The bug is in the Artifactory plugin, yet Jenkins core ought to have caught this and reported it without breaking loading of the job, much less the whole (top-level) folder.

            schristou Steven Christou
            jglick Jesse Glick
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: