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

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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Jenkins 2.32.2 ( official docker image 2.32.2-alpine)
      office-365-connector-plugin = 2.4
      Java 8
       
    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          amazurenko Aleksandr Mazurenko added a comment -

          Actually the message is sent in-spite of error . And mentioned error is not failing the build .
          Please check attached screenshot .

          Show
          amazurenko Aleksandr Mazurenko added a comment - Actually the message is sent in-spite of error . And mentioned error is not failing the build . Please check attached screenshot .
          Hide
          amazurenko Aleksandr Mazurenko added a comment -

          Additional information.

          Show
          amazurenko Aleksandr Mazurenko added a comment - Additional information.
          Hide
          rjbrown57 Russell Brown added a comment -

          I'm seeing this behavior as well.

          Show
          rjbrown57 Russell Brown added a comment - I'm seeing this behavior as well.
          Hide
          srhebbar Srivardhan Hebbar added a comment -

          With release 2.4.1, all unwanted logging have been removed.

          Show
          srhebbar Srivardhan Hebbar added a comment - With release 2.4.1, all unwanted logging have been removed.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: