Null Pointer Exception preventing extracting pipeline data
Deploying the latest version of the plugin, we are getting the below NPE which seems to abort extracting the pipeline data, and no data is pushed to ELK.
jenkins | 2023-03-06 12:43:00.605+0000 [id=3544] INFO i.j.p.p.d.e.e.PipelineQueueListener#log: The task "ops-hwit-scan" has left the queue with a wating time of: 4 milliseconds
jenkins | 2023-03-06 12:43:01.043+0000 [id=2741] INFO i.j.p.p.d.e.e.PipelineQueueListener#log: The task "part of ops-hwit-scan #325996 (Waiting for null...)" has left the queue with a wating time of: 2 milliseconds
jenkins | 2023-03-06 12:43:02.350+0000 [id=3569] WARNING o.j.p.w.cps.CpsFlowExecution#notifyListeners
jenkins | java.lang.NullPointerException
jenkins | at io.jenkins.plugins.pipeline.data.extractor.events.PipelineQueueListener.getQueueDuration(PipelineQueueListener.java:94)
jenkins | at io.jenkins.plugins.pipeline.data.extractor.model.RunData$RunDataBuilder.<init>(RunData.java:103)
jenkins | at io.jenkins.plugins.pipeline.data.extractor.service.RunDataServiceImpl.extractRunData(RunDataServiceImpl.java:43)
jenkins | at io.jenkins.plugins.pipeline.data.extractor.events.PipelineFlowExecutionListener.onCompleted(PipelineFlowExecutionListener.java:39)
jenkins | at org.jenkinsci.plugins.workflow.flow.FlowExecutionListener.fireCompleted(FlowExecutionListener.java:94)
jenkins | at org.jenkinsci.plugins.workflow.job.WorkflowRun.fireCompleted(WorkflowRun.java:679)
jenkins | at org.jenkinsci.plugins.workflow.job.WorkflowRun.finish(WorkflowRun.java:645)
jenkins | at org.jenkinsci.plugins.workflow.job.WorkflowRun$GraphL.onNewHead(WorkflowRun.java:1065)
jenkins | at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1556)
jenkins | at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3.run(CpsThreadGroup.java:509)
jenkins | at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:38)
jenkins | at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
jenkins | at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:30)
jenkins | at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:70)
jenkins | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
jenkins | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
jenkins | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
jenkins | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
jenkins | at java.base/java.lang.Thread.run(Thread.java:829)
jenkins | 2023-03-06 12:48:00.604+0000 [id=3688] INFO i.j.p.p.d.e.e.PipelineQueueListener#log: The task "ops-hwit-scan" has left the queue with a wating time of: 3 milliseconds
jenkins | 2023-03-06 12:48:01.022+0000 [id=2469] INFO i.j.p.p.d.e.e.PipelineQueueListener#log: The task "part of ops-hwit-scan #325997 (Waiting for null...)" has left the queue with a wating time of: 2 milliseconds
jenkins | 2023-03-06 12:48:02.378+0000 [id=3718] WARNING o.j.p.w.cps.CpsFlowExecution#notifyListeners
jenkins | 2023-03-06 12:57:21.220+0000 [id=3947] WARNING o.j.p.w.cps.CpsFlowExecution#notifyListeners
jenkins | java.lang.NullPointerException
jenkins | at io.jenkins.plugins.pipeline.data.extractor.events.PipelineQueueListener.getQueueDuration(PipelineQueueListener.java:94)
jenkins | at io.jenkins.plugins.pipeline.data.extractor.model.RunData$RunDataBuilder.<init>(RunData.java:103)
jenkins | at io.jenkins.plugins.pipeline.data.extractor.service.RunDataServiceImpl.extractRunData(RunDataServiceImpl.java:43)
jenkins | at io.jenkins.plugins.pipeline.data.extractor.events.PipelineFlowExecutionListener.onCompleted(PipelineFlowExecutionListener.java:39)
jenkins | at org.jenkinsci.plugins.workflow.flow.FlowExecutionListener.fireCompleted(FlowExecutionListener.java:94)
jenkins | at org.jenkinsci.plugins.workflow.job.WorkflowRun.fireCompleted(WorkflowRun.java:679)
jenkins | at org.jenkinsci.plugins.workflow.job.WorkflowRun.finish(WorkflowRun.java:645)
jenkins | at org.jenkinsci.plugins.workflow.job.WorkflowRun$GraphL.onNewHead(WorkflowRun.java:1065)
jenkins | at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1556)
jenkins | at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3.run(CpsThreadGroup.java:509)
jenkins | at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:38)
jenkins | at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
jenkins | at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:30)
jenkins | at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:70)
jenkins | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
jenkins | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
jenkins | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
jenkins | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
jenkins | at java.base/java.lang.Thread.run(Thread.java:829)