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)

          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 added a comment -

          Could work more precisely in combination with JENKINS-27395.

          Jesse Glick added a comment - Could work more precisely in combination with  JENKINS-27395 .

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          pom.xml
          src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/AbstractRealtimeTestResultAction.java
          src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/Attacher.java
          src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/MavenAttacher.java
          src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/NullTestResult.java
          src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/PerJobConfiguration.java
          src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/PipelineRealtimeTestResultAction.java
          src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeJUnitStep.java
          src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java
          src/main/resources/org/jenkinsci/plugins/junitrealtimetestreporter/Messages.properties
          src/main/resources/org/jenkinsci/plugins/junitrealtimetestreporter/PerJobConfiguration/config-details.jelly
          src/main/resources/org/jenkinsci/plugins/junitrealtimetestreporter/PerJobConfiguration/config.jelly
          src/main/resources/org/jenkinsci/plugins/junitrealtimetestreporter/PerJobConfiguration/help.html
          src/main/resources/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeJUnitStep/config.jelly
          src/main/resources/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeJUnitStep/help.html
          src/test/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeJUnitStepTest.java
          http://jenkins-ci.org/commit/junit-realtime-test-reporter-plugin/cedf6b20f1cfb318fc9fcfae64281cbbaaecd341
          Log:
          Merge pull request #2 from jglick/pipeline-JENKINS-35420

          JENKINS-35420 Pipeline compatibility

          Compare: https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/compare/8b63623ccd1f...cedf6b20f1cf

          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/AbstractRealtimeTestResultAction.java src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/Attacher.java src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/MavenAttacher.java src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/NullTestResult.java src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/PerJobConfiguration.java src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/PipelineRealtimeTestResultAction.java src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeJUnitStep.java src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java src/main/resources/org/jenkinsci/plugins/junitrealtimetestreporter/Messages.properties src/main/resources/org/jenkinsci/plugins/junitrealtimetestreporter/PerJobConfiguration/config-details.jelly src/main/resources/org/jenkinsci/plugins/junitrealtimetestreporter/PerJobConfiguration/config.jelly src/main/resources/org/jenkinsci/plugins/junitrealtimetestreporter/PerJobConfiguration/help.html src/main/resources/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeJUnitStep/config.jelly src/main/resources/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeJUnitStep/help.html src/test/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeJUnitStepTest.java http://jenkins-ci.org/commit/junit-realtime-test-reporter-plugin/cedf6b20f1cfb318fc9fcfae64281cbbaaecd341 Log: Merge pull request #2 from jglick/pipeline- JENKINS-35420 JENKINS-35420 Pipeline compatibility Compare: https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/compare/8b63623ccd1f...cedf6b20f1cf

          Jesse Glick added a comment -

          Merged but not yet released.

          Jesse Glick added a comment - Merged but not yet released.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          COMPATIBILITY.md
          http://jenkins-ci.org/commit/pipeline-plugin/98058e2fa58f7245a87f070f7dc91526f600aa29
          Log:
          JENKINS-35420 Noting release.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: COMPATIBILITY.md http://jenkins-ci.org/commit/pipeline-plugin/98058e2fa58f7245a87f070f7dc91526f600aa29 Log: JENKINS-35420 Noting release.

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

              Created:
              Updated:
              Resolved: