Gerrit / Jenkins中的奇怪行为触发“更改合并”立即合并

时间:2015-10-23 10:32:20

标签: jenkins merge gerrit gerrit-trigger

我在Jenkins中有2个验证触发器:“patchset created”和“change merged”。

在Gerrit的某人点击“提交”之前,Gerrit推迟了合并,直到Jenkins回应了SUCCESS。但是现在格里特立刻合并,并且詹姆斯后来又回到了失败状态。

你知道我做错了什么吗?

这是我的.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

1 个答案:

答案 0 :(得分:1)

您所描述的情况没有问题。实际上,当有人点击“提交”按钮时,会立即合并更改。这是正确的。 Gerrit总是以这种方式工作(版本2.9.1,2.11.2或任何版本)。我认为您的问题有问题,或者在某些情况下,由于其他更改依赖性(而不是等待Jenkins构建),更改仍未完成。