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

FATAL: null java.lang.NullPointerException if parent Project build is not hold until build start

XMLWordPrintable

      We have a rather full build envoironment where are about 200 jenkins projects are mainly doing several tests and some more jobs doing other thing like deploys etc.
      everything is chained in an functional manner and works and grows.

      Now recently i wanted to not hold too many initerresting builds of a certain project in the tree cause it does nothing than aggregate several triggers from other builds and start downstream ones.

      So i reduced max number of builds to store to 5 and not i get in the downstream build a

      Started by upstream project "TESTING-upstream" build number 2536
      Started by upstream project "TESTING-upstream" build number 2537
      Started by upstream project "TESTING-upstream" build number 2538
      Started by upstream project "TESTING-upstream" build number 2539
      Started by upstream project "TESTING-upstream" build number 2540
      Started by upstream project "TESTING-upstream" build number 2541
      Started by upstream project "TESTING-upstream" build number 2542
      FATAL: null
      java.lang.NullPointerException
      at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:87)
      at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:46)
      at hudson.model.listeners.RunListener.fireStarted(RunListener.java:148)
      at hudson.model.Run.run(Run.java:1357)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:145)

      because e.g.2536 build is not there anymore when this project starts to run because it was delayed due to an restricted shared ressource.

      i think thats not ok to get an fatal here...
      the upstream build isnt here, ok but thats due to a large delay in our setup.
      if i archive 100 of the upstreams my overviews are rather ugly etc. but it works...
      so for now i changed that back but its a bit annoying

            Unassigned Unassigned
            phiamo Philipp Mohrenweiser
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: