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

gerrit-trigger: ClassCastException after upgrading to Jenkins 2.266

    • 2.86

      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.

          [JENKINS-64245] gerrit-trigger: ClassCastException after upgrading to Jenkins 2.266

          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.

          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.

          George Joseph added a comment -

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

          George Joseph added a comment - Thanks! For some reason that issue didn't come up when I searched before creating this issue.

          Renato Costallat added a comment - - edited

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

           

          Tks!!

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

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

              Created:
              Updated:
              Resolved: