-
Bug
-
Resolution: Unresolved
-
Critical
-
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.
It seems I was wrong... I managed to downgrade Gerrit from 3.7.0 to 3.6.3 with the help from Gerrit team. However, it still doesn't work to trigger Jenkins job from Gerrit comment.
Any clue here? Or any instructions on how to further debug this issue, like logs, diagnostic commands etc.?