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

Enable integration with customised Gerrit review categories

    XMLWordPrintable

Details

    Description

      In some projects it may be the case that the Gerrit instance has been configured with customised review categories, for example to meet more stringent internal/external PA requirements than the default "code-review" and "verified". The Gerrit plugin for Jenkins is hard-coded to allow review of only the two default categories, and therefore cannot integrate with any such customised instance.

      The proposed improvement would be to retrieve the list of available categories for the selected Gerrit instance, and allow the plugin to be configured to update any of them.

      The list of available review categories can be retrieved from the Gerrit SSH CLI with the command "ssh -p <port> <host> gerrit approve --help". The output of this command can be parsed to provide the plugin configuration options.

      Attachments

        Activity

          sdirector Monty Taylor added a comment -

          We're working on getting this upstreamed... but until then:

          https://github.com/openstack-ci/gerrit-trigger-plugin

          We've been working with the guys from Ericsson to have gerrit respond to multiple event types. One of them is "comment added" - which allows you to respond to any of those. We, in fact, have customized categories and respond to them in our Jenkins.

          sdirector Monty Taylor added a comment - We're working on getting this upstreamed... but until then: https://github.com/openstack-ci/gerrit-trigger-plugin We've been working with the guys from Ericsson to have gerrit respond to multiple event types. One of them is "comment added" - which allows you to respond to any of those. We, in fact, have customized categories and respond to them in our Jenkins.

          People

            jyrkiput jyrkiput
            zetten Peter van Zetten
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: