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

Claim Plugin: WorkflowRun cannot be cast to AbstractBuild

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • claim-plugin
    • None
    • Jenkins 1.651.2, Pipeline 2.4 Plugin, Build Failure Analyzer Plugin 1.17.1, Claim Plugin 2.8

      When claiming a build that resulted from a Pipeline, a class cast exception is raised if (and only if) the "Error" Dropdown is filled with a value from the Build Failure Analyzer plugin.

      Full stack trace attached.

      Caused by: java.lang.ClassCastException: org.jenkinsci.plugins.workflow.job.WorkflowRun cannot be cast to hudson.model.AbstractBuild
      	at hudson.plugins.claim.ClaimBuildFailureAnalyzer.createFailAction(ClaimBuildFailureAnalyzer.java:57)
      	at hudson.plugins.claim.AbstractClaimBuildAction.doClaim(AbstractClaimBuildAction.java:88)
      

            greybird Arnaud TAMAILLON
            ahus1 Alexander Schwartz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: