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

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

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • None

      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)
      

          [JENKINS-35420] Realtime junit report to support Pipeline (was: throws ClassCastException when pipeline run)

          Oliver Gondža created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 171715 ] New: JNJira + In-Review [ 184427 ]

          As discussed with olivergondza – PR [1] does not fix the issue, however it at least covers the exception.

          [1] https://github.com/jenkinsci/junit-realtime-test-reporter/pull/1

          Jakub Cechacek added a comment - As discussed with olivergondza – PR [1] does not fix the issue, however it at least covers the exception. [1] https://github.com/jenkinsci/junit-realtime-test-reporter/pull/1

          Code changed in jenkins
          User: Jakub Cechacek
          Path:
          src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/Attacher.java
          http://jenkins-ci.org/commit/junit-realtime-test-reporter/be136fa97d8f968afb4aaa70acc02a8de999f56d
          Log:
          JENKINS-35420 Only add reporting action for supported runs)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jakub Cechacek Path: src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/Attacher.java http://jenkins-ci.org/commit/junit-realtime-test-reporter/be136fa97d8f968afb4aaa70acc02a8de999f56d Log: JENKINS-35420 Only add reporting action for supported runs)

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          pom.xml
          src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/Attacher.java
          http://jenkins-ci.org/commit/junit-realtime-test-reporter/5e850303e9142fe750ca539bd3a594f386f0e242
          Log:
          Merge pull request #1 from jcechace/JENKINS-35420

          Jenkins 35420

          Compare: https://github.com/jenkinsci/junit-realtime-test-reporter/compare/032ce5af1ce1...5e850303e914

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: pom.xml src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/Attacher.java http://jenkins-ci.org/commit/junit-realtime-test-reporter/5e850303e9142fe750ca539bd3a594f386f0e242 Log: Merge pull request #1 from jcechace/ JENKINS-35420 Jenkins 35420 Compare: https://github.com/jenkinsci/junit-realtime-test-reporter/compare/032ce5af1ce1...5e850303e914
          Jesse Glick made changes -
          Labels New: pipeline
          Jesse Glick made changes -
          Summary Original: Realtime junit report plugin throws ClassCastException when pipeline job run New: Realtime junit report to support Pipeline (was: throws ClassCastException when pipeline run)
          Jesse Glick made changes -
          Assignee New: Jesse Glick [ jglick ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "PR 2 (Web Link)" [ 17618 ]

            jglick Jesse Glick
            olivergondza Oliver Gondža
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: