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

Comment no longer triggers jenkins job in Gerrit 3.7.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • gerrit-trigger-plugin
    • None
    • Jenkins 2.361.4
      gerrit trigger plugin 2.37.0
      Gerrit 3.7.0

      I use comments in Gerrit to trigger jenkins jobs in my setup. This used to work well in the past with a few Jenkins/Gerrit/Gerrit-trigger combinations of different versions. The last good combination I used was:

      COMBO1: Jenkins 2.361.3 + Gerrit trigger 2.36.1 + Gerrit 3.6.1

      Recently I upgraded to:

      COMBO2: Jenkins 2.361.4 + Gerrit-trigger 2.37.0 + Gerrit 3.7.0

      Suddenly Gerrit comments are no longer able to trigger Jenkins jobs. At first I thought it's some problem in the plugin or Jenkins so I reverted them to the last version, as below:

      COMBO3: Jenkins 2.361.3 + Gerrit-trigger 2.36.1 + Gerrit 3.7.0

      But it still doesn't work. So I suspect it was Gerrit 3.7.0 caused the problem, or is not compatible with the trigger plugin. However upgrading Gerrit from 3.6 to 3.7 involved DB scheme changes so I didn't figure out a way to downgrade Gerrit yet.

      I also tried `ssh $user@$gerrit-server gerrit stream-event` command with Gerrit 3.7.0, I did see Gerrit emitting events with type of "comment-added", but the plugin on Jenkins side made no reaction at all. That's why I suspect there is some compatibility problem between this plugin and Gerrit 3.7.0.

      BTW, jobs are still able to be triggered by "patchset-created" event without problem, with COMBO2, or 1 or 3.

            rsandell rsandell
            kailiu Kai
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: