-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
Windows Server 2013
Jenkins 1.609.1 LTS
Build Blocker Plugin 1.6
Sometimes the build blocker plugin fails with a null pointer exception. Jobs are queued first, then vanish from the queue without being built.
Jenkins log:
java.lang.NullPointerException at hudson.plugins.buildblocker.BlockingJobsMonitor.getBlockingJob(BlockingJobsMonitor.java:85) at hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.canRun(BuildBlockerQueueTaskDispatcher.java:80) at hudson.model.Queue.isBuildBlocked(Queue.java:1110) at hudson.model.Queue.maintain(Queue.java:1320) at hudson.model.Queue$MaintainTask.doRun(Queue.java:2450) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) at java.util.concurrent.FutureTask.runAndReset(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
This might be related to my specific configuration: commits are pushed to the Jenkins CI and two builds are queued simultaneously (Windows build and Linux build). Both builds have a configured wait time of 60s and the same regular expression set in the build blocker field.
The NPE only occurs in one build after the wait time has passed, the other build starts as expected. I have now changed the wait time of one job to 70s and haven't noticed a NPE for several days.