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

            olivergondza Oliver Gondža created issue -
            rtyler R. Tyler Croy made changes -
            Field Original Value New Value
            Workflow JNJira [ 171715 ] JNJira + In-Review [ 184427 ]
            Hide
            jcechace Jakub Cechacek added a comment -

            As discussed with Oliver Gondža – 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

            Show
            jcechace Jakub Cechacek added a comment - As discussed with Oliver Gondža – 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
            Hide
            scm_issue_link 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)

            Show
            scm_issue_link 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)
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            jglick Jesse Glick made changes -
            Labels pipeline
            jglick Jesse Glick made changes -
            Summary Realtime junit report plugin throws ClassCastException when pipeline job run Realtime junit report to support Pipeline (was: throws ClassCastException when pipeline run)
            jglick Jesse Glick made changes -
            Assignee Jesse Glick [ jglick ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 2 (Web Link)" [ 17618 ]
            Hide
            jglick Jesse Glick added a comment -

            Could work more precisely in combination with JENKINS-27395.

            Show
            jglick Jesse Glick added a comment - Could work more precisely in combination with  JENKINS-27395 .
            jglick Jesse Glick made changes -
            Link This issue depends on JENKINS-27395 [ JENKINS-27395 ]
            jglick Jesse Glick made changes -
            Link This issue depends on JENKINS-31582 [ JENKINS-31582 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-46663 [ JENKINS-46663 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-43276 [ JENKINS-43276 ]
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            Hide
            jglick Jesse Glick added a comment -

            Merged but not yet released.

            Show
            jglick Jesse Glick added a comment - Merged but not yet released.
            jglick Jesse Glick made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            scm_issue_link 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.

            Show
            scm_issue_link 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.

              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: