-
Bug
-
Resolution: Unresolved
-
Major
-
None
If the last build is a job that is currently building but has a null build result, the JobResultBlockQueueCondition throws a NullPointerException:
Oct 24, 2018 4:21:46 PM jenkins.util.AtmostOneTaskExecutor$1 call WARNING: null java.lang.NullPointerException at org.jenkinsci.plugins.blockqueuedjob.condition.JobResultBlockQueueCondition.isBlocked(JobResultBlockQueueCondition.java:70) at org.jenkinsci.plugins.blockqueuedjob.BlockItemQueueTaskDispatcher.canRun(BlockItemQueueTaskDispatcher.java:35) at hudson.model.Queue.getCauseOfBlockageForItem(Queue.java:1196) at hudson.model.Queue.maintain(Queue.java:1553) at hudson.model.Queue$1.call(Queue.java:324) at hudson.model.Queue$1.call(Queue.java:321) at jenkins.util.AtmostOneTaskExecutor$1.call(AtmostOneTaskExecutor.java:108) at jenkins.util.AtmostOneTaskExecutor$1.call(AtmostOneTaskExecutor.java:98) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:112) at java.lang.Thread.run(Thread.java:748)
How to reproduce
Create 2 pipeline job the do "node { sleep 10 }" and one of those pipeline should be configured to block the build depending on the other one: "Block/Unblock task in queue > Block when last build result" with status UNSTABLE.