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

Unable to access Gerrit Trigger from Groovy

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: gerrit-trigger-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.263.4
      Gerrit Trigger 2.32.0
    • Similar Issues:

      Description

      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.

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            rsandell rsandell
            Reporter:
            dpotapov Daniel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: