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

Error "Unable to cast run to abstract build" with AccuRev

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • Jenkins 2.32.2
      Office 365 Connector Plugin 2.4
      AccuRev 6.2.3d (Windows client, Linux server)

      Our build jobs log the error below with each run of the Office 365 webhooks. The error states that AccuRev doesn't support getAffectedFiles(). Is there a similar call that AccuRev does support that can be used instead for AccuRev systems, or is it possible to catch this error for and just log an informational message instead? Thanks, Tim

      ERROR: Unable to cast run to abstract build. java.lang.UnsupportedOperationException: getAffectedFiles() is not implemented by accurev
      java.lang.UnsupportedOperationException: getAffectedFiles() is not implemented by accurev

      Build step 'Invoke Gradle script' changed build result to SUCCESS
      createJobCompletedCard: 203
      ERROR: Unable to cast run to abstract build. java.lang.UnsupportedOperationException: getAffectedFiles() is not implemented by accurev
      java.lang.UnsupportedOperationException: getAffectedFiles() is not implemented by accurev
      	at hudson.scm.ChangeLogSet$Entry.getAffectedFiles(ChangeLogSet.java:242)
      	at jenkins.plugins.office365connector.Office365ConnectorWebhookNotifier.addScmDetails(Office365ConnectorWebhookNotifier.java:370)
      	at jenkins.plugins.office365connector.Office365ConnectorWebhookNotifier.addCauses(Office365ConnectorWebhookNotifier.java:442)
      	at jenkins.plugins.office365connector.Office365ConnectorWebhookNotifier.createJobCompletedCard(Office365ConnectorWebhookNotifier.java:302)
      	at jenkins.plugins.office365connector.Office365ConnectorWebhookNotifier.getCard(Office365ConnectorWebhookNotifier.java:109)
      	at jenkins.plugins.office365connector.Office365ConnectorWebhookNotifier.getCard(Office365ConnectorWebhookNotifier.java:96)
      	at jenkins.plugins.office365connector.Office365ConnectorWebhookNotifier.sendBuildCompleteNotification(Office365ConnectorWebhookNotifier.java:119)
      	at jenkins.plugins.office365connector.Office365ConnectorBuildListener.onCompleted(Office365ConnectorBuildListener.java:48)
      	at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211)
      	at hudson.model.Run.execute(Run.java:1773)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:404)
      No webhooks to notify
      

            srhebbar Srivardhan Hebbar
            mitorez Timothy Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: