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

Unable to access Gerrit Trigger from Groovy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • gerrit-trigger-plugin
    • None
    • 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.

       

            rsandell rsandell
            dpotapov Daniel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: