-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins 2.346.3
Gerrit 3.7.0
Gerrit Trigger Plugin 2.38.0
When the following options are enabled:
Build Current Patches Only
Abort new patch sets
Abort manual patch sets
Abort patch sets with same topic
Plus within the job configurations "Topic Asscociation" builds triggered by the Topic Association option are not beeing aborted in the following scenario.
1.) Patch set 1 on repository "test-a" is created
2.) Patch set 1 on repository "test-b" is created
3.) Patch set 1 triggers the Jenkins job "verify-a" (Build #1). This job contains the build information Patch set 1 "test-a" and topic: null. Same applies to "verify-b" (Build #1) is being triggered based on the patchset created event on "test-b" repository. Both jobs have Topic Association enabled, nothing triggered so far since no Gerrit topic is assigned.
4.) Both patch sets are modified and a Gerrit topic is added to patch set 1 "test-a" and patch set 1 "test-b" e.g. Topic: "foobar".
4.) Via patch set 1 on "test-a" a new Gerrit event is fired towards Jenkins
5.) The previous job on patch set 1 "test-a" repo is aborted, but the already running Build #1 of Patchset 1 on "test-b" keeps running and based on the new event a new build is triggered. This time the build contains the information about (Patchset 1 & Topic: "foobar"). Since with "Abort patch set with same topic" only one build is beeing executed the other build running triggered by the inital upload on "test-b" is still being executed.
Expectation is with
Build Current Patches Only
Abort new patchsets
Abort patch sets with same topic
and
Topic Association (within job configuration)
the running build "verify-b" with Patchset 1 information and Topic: null should be aborted as well since the new fired build contains all information about the patches based on the Gerrit topic.