Using Jenkins 1.626
I have configured 19 projects with a reverse build trigger "Build after other projects are built".After building the upstream project, these 19 projects (minus those disabled) should be triggered as well.I have rechecked the configuration for every downstream projects. They look fine. I have even re-saved all those projects.
My projects are all multi-configuration jobs.
Still I am getting a NullPointerException for one of the downstream projects:
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Triggering a new build of project2
project3 is disabled. Triggering skipped
project4 is disabled. Triggering skipped
Triggering a new build of project5
Triggering a new build of project6
Triggering a new build of project7
Triggering a new build of project8
FATAL: null
java.lang.NullPointerException
at jenkins.triggers.ReverseBuildTrigger.shouldTrigger(ReverseBuildTrigger.java:111)
at jenkins.triggers.ReverseBuildTrigger.access$000(ReverseBuildTrigger.java:84)
at jenkins.triggers.ReverseBuildTrigger$1.shouldTriggerBuild(ReverseBuildTrigger.java:141)
at hudson.tasks.BuildTrigger.execute(BuildTrigger.java:245)
at hudson.model.AbstractBuild$AbstractBuildExecution.cleanUp(AbstractBuild.java:687)
at hudson.model.Run.execute(Run.java:1788)
at hudson.matrix.MatrixBuild.run(MatrixBuild.java:301)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:381)
Finished: SUCCESSIt is impossible to find out which project it has a problem with, among the total 19 downstream projects.
There are many reported bugs on this matter, most Closed and resolved:
https://issues.jenkins-ci.org/browse/JENKINS-23191https://issues.jenkins-ci.org/browse/JENKINS-25758https://issues.jenkins-ci.org/browse/JENKINS-23686
The configuration for alle downstream projects look the same<jenkins.triggers.ReverseBuildTrigger>
<spec></spec>
<upstreamProjects>project1</upstreamProjects>
<threshold>
<name>SUCCESS</name>
<ordinal>0</ordinal>
<color>BLUE</color>
<completeBuild>true</completeBuild>
</threshold>
</jenkins.triggers.ReverseBuildTrigger>
I have even tried restarting Jenkins, but that didn't work.
project3 is disabled. Triggering skipped
When I removed the upstream project from each disabled downstream projects reverse build trigger, then everything worked fine.