Jenkins + Gerrit Trigger Not Automatically Building

三世轮回 提交于 2020-01-01 02:47:11

问题


Jenkins does not seem to be automatically pulling in changes that need to be reviewed from Gerrit.

We're using Gerrit Trigger.

Also If I try to manually trigger some, it seems like nothing ever happens.

The "control" in the Gerrit Trigger management area, doesn't seem to much... flashes either "starting", "stopping" or "restarting"

Any ideas where I went wrong?


回答1:


I was just having the same problem, and it had to do with the default Gerritt setting in my job for matching branches. In your job, under Gerritt Trigger, if your Branches Pattern says "**", make sure the Type is set to Path, or else it won't match any branches.




回答2:


I've actually stumbled over the same problem and it took me a while to figure out the UI, since I thought the branch and project configuration belongs to Dynamic Trigger Configuration. The configuration will basically need to look like this:

Note: my configuration uses the Silent Mode, since I don't want the plug-in to communicate back to gerrit.



来源:https://stackoverflow.com/questions/11461301/jenkins-gerrit-trigger-not-automatically-building

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!