Unable to access Gerrit Trigger from Groovy

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I'm using a script similar to https://github.com/jenkinsci/configuration-as-code-groovy-plugin/blob/master/demos/gerrit-trigger.yml to configure Gerrit servers in Jenkins.

      Apparently, this script no longer works with Gerrit Trigger plugin >= 2.31.0.

      Running the following in the Jenkins script console prints "null":

       

      import com.sonyericsson.hudson.plugins.gerrit.trigger.PluginImpl
      println(Jenkins.instance.pluginManager.getPlugin(PluginImpl.class))

      After downgrading to 2.30.5, I'm getting a non-null result and the script mentioned above works.

       

            Assignee:
            rsandell
            Reporter:
            Daniel
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: