Search code examples
jenkinsgerrit-trigger

gerrit trigger - comment added contains regular expression gets started by different expression/trigger


I have 2 independent jobs working on same project1/master. I have configured gerrit trigger to start the job #1(sandbox-build) on comment containing regular expression.

The job #1(sandbox-build) starts as expected, but if somebody starts job #2 (by creating new patchset) he also starts job #1 (and he shouldn't as it contains different regular expession -"regular-build").

Why it behaves like that? I would like job #1 to be started only by my trigger "sanbox-build". Any idea how could i possibly fix it?enter image description here


Solution

  • Yes, just delete the "Patchset Created" and the "Draft Published" part of your Gerrit trigger configuration on the "Trigger on" section of the Job1 by clicking in the two "X"s.