0

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

Wojtas.Zet
  • 636
  • 2
  • 10
  • 30
  • Are you sure the job #2 is starting due to the comment added? Is it not starting because of the patchset that was just created? – Marcelo Ávila de Oliveira Feb 25 '20 at 13:58
  • yes you are right - actual problem is that if some other developer starts new job by patchset he starts "sandbox-build" as well. I would like this job to be only started manualyy by comment "sandbox-build". Is it possible? I have just corrected the question. – Wojtas.Zet Feb 26 '20 at 15:20

1 Answers1

1

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.