Reputation: 386
I have 2 verification triggers in Jenkins: "patchset created" and "change merged".
Before when someone in Gerrit clicked on "submit", then Gerrit delayed the merge until Jenkins responded SUCCESS. But now Gerrit merges instantly and in parallel Jenkins returns FAILURE later.
Do you know what I do wrong ?
Here is my .config:
[access]
inheritFrom = All-Projects
[access "refs/*"]
owner = group Project_Admins
forgeAuthor = group Project_Admins
forgeCommitter = group Project_Admins
push = deny group Project_Admins
push = +force group Project_Admins
pushTag = group Project_Admins
exclusiveGroupPermissions = push
[access "refs/heads/*"]
pushTag = +force group Project_Admins
label-Code-Review = -2..+2 group Project_Admins
label-Verified = -1..+1 group Project_Admins
submit = group Project_Admins
push = deny group Project_Admins
push = group Project_Admins
[access "refs/tags/*"]
push = +force group Project_Admins
push = +force group Project_Admins
pushTag = +force group Project_Admins
pushTag = +force group Project_Admins
create = group Project_Admins
create = group Project_Admins
[submit]
mergeContent = true
Upvotes: 2
Views: 933
Reputation: 22411
There's no issue with the situation you've described. Actually when someone clicks on "Submit" button, the change is immediately merged. This is right. Gerrit always worked this way (in version 2.9.1, 2.11.2 or any version). I think there's something wrong with your question or maybe in some cases the changes were pending due to other changes dependence (not waiting for the Jenkins build).
Upvotes: 1