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

Realtime junit report to support Pipeline (was: throws ClassCastException when pipeline run)

    Details

    • Similar Issues:

      Description

      Jun 07, 2016 7:15:06 AM hudson.model.listeners.RunListener report
      WARNING: RunListener failed
      java.lang.ClassCastException: org.jenkinsci.plugins.workflow.job.WorkflowRun cannot be cast to hudson.model.AbstractBuild
      	at org.jenkinsci.plugins.junitrealtimetestreporter.Attacher.onStarted(Attacher.java:44)
      	at hudson.model.listeners.RunListener.fireStarted(RunListener.java:213)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:198)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:381)
      
      Jun 07, 2016 7:15:23 AM org.jenkinsci.plugins.workflow.job.WorkflowRun finish
      INFO: Playground/pipeline test #2 completed: SUCCESS
      Jun 07, 2016 7:15:23 AM hudson.model.listeners.RunListener report
      WARNING: RunListener failed
      java.lang.ClassCastException: org.jenkinsci.plugins.workflow.job.WorkflowRun cannot be cast to hudson.model.AbstractBuild
      	at org.jenkinsci.plugins.junitrealtimetestreporter.Attacher.onFinalized(Attacher.java:54)
      	at hudson.model.listeners.RunListener.fireFinalized(RunListener.java:230)
      	at hudson.model.Run.onEndBuilding(Run.java:1890)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.finish(WorkflowRun.java:544)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$1100(WorkflowRun.java:111)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun$GraphL.onNewHead(WorkflowRun.java:781)
      	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:843)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$4.run(CpsThreadGroup.java:340)
      	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:32)
      	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
      	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                olivergondza Oliver Gond┼ża
              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: