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

[office365ConnectorSend] 'Unable to cast run to abstract build' error appears in pipeline build (Jenkinsfile).

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins 2.32.2 ( official docker image 2.32.2-alpine)
      office-365-connector-plugin = 2.4
      Java 8
       

      Error message appears in console output after message sent:
      ....
      createJobCompletedCard: 203
      ERROR: Unable to cast run to abstract build
      java.lang.ClassCastException: org.jenkinsci.plugins.workflow.job.WorkflowRun cannot be cast to hudson.model.AbstractBuild
      .....
      Steps to reproduce:
      1. install office-365-connector-plugin = 2.4
      2. add to Jenkinsfile command in format :
      office365ConnectorSend message: <msg>, status: <status>, webhookUrl: <webhookUrl>
      3 Run pipeline build

            srhebbar Srivardhan Hebbar
            amazurenko Aleksandr Mazurenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: