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

gerrit-trigger: ClassCastException after upgrading to Jenkins 2.266

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      2.86

      Description

      After upgrading from 2.235 to 2.266, the Gerrit Trigger plugin throws a ClassCastException as follows:

      java.lang.ClassCastException: class com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger.setTriggerOnEvents() expects class com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginGerritEvent but received class org.jenkinsci.plugins.workflow.cps.DSL$NamedArgsAndClosure
       

      The full log is attached.
      The Jenkinsfile for this job is at
      https://github.com/asterisk/asterisk/blob/16/tests/CI/unittests.jenkinsfile

      Unfortunately, downgrading back to 2.235 down't work because there must have been internal changes that make all our jobs disappear.

      Our entire CI process is currently at a standstill but we'd like to avoid taking the drastic action of restoring from backups.

        Attachments

          Issue Links

            Activity

            Hide
            carroll Carroll Chiou added a comment -

            This issue is related to https://issues.jenkins.io/browse/JENKINS-64185

            A PR for the fix has been filed here: https://github.com/jenkinsci/workflow-cps-plugin/pull/399

            I'm pretty sure if you use the incremental it should resolve the gerrit issues.

            Show
            carroll Carroll Chiou added a comment - This issue is related to https://issues.jenkins.io/browse/JENKINS-64185 A PR for the fix has been filed here: https://github.com/jenkinsci/workflow-cps-plugin/pull/399 I'm pretty sure if you use the incremental it should resolve the gerrit issues.
            Hide
            gtjoseph George Joseph added a comment -

            Thanks! For some reason that issue didn't come up when I searched before creating this issue.

            Show
            gtjoseph George Joseph added a comment - Thanks! For some reason that issue didn't come up when I searched before creating this issue.
            Hide
            foot Renato Costallat added a comment - - edited

            Carroll Chiou tested it here and it's working (workflow-cps-2.86-rc2569.b828472cff3a.hpi) PR-399!

             

            Tks!!

            Show
            foot Renato Costallat added a comment - - edited Carroll Chiou tested it here and it's working ( workflow-cps-2.86-rc2569.b828472cff3a.hpi ) PR-399 !   Tks!!

              People

              Assignee:
              carroll Carroll Chiou
              Reporter:
              gtjoseph George Joseph
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: