Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-484

Jenkins Jobs do not load if artifactory server fails to load.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.5
    • Component/s: None
    • Labels:
      None

      Description

      The bug in this ticket is if a user creates a job and the artifactory server becomes unavailable it will fail to load the job on a restart. Below is a reproducible scenario where the job fails to load if artifactory is not available:

      1. Create an artifactory server.
      2. Go to Manage Jenkins and link Jenkins to artifactory server
      3. Create a new Job that uses the artifactory configuration created in step 2.
      4. Shut down artifactory server.
      5. Restart the Jenkins server.
      6. The job disappears!
      7. Start up artifactory.
      8. Restart the Jenkins server.
      9. The job is now back!

      Stack trace:

      ... 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 ...

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eyalbe Eyal Ben Moshe (Inactive)
                Reporter:
                schristou Steven Christou
              • Votes:
                5 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: