Jenkins + Gerrit Trigger Not Automatically Building

Michael picture Michael · Jul 12, 2012 · Viewed 11k times · Source

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?

Answer

Ari picture Ari · Jul 17, 2012

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.