Unable to access Gerrit Trigger from Groovy

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: gerrit-trigger-plugin
    • None
    • Environment:
      Jenkins 2.263.4
      Gerrit Trigger 2.32.0

      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
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: