github linkedin
How to retrigger Jenkins job for merged/submitted change?

We have Jenkins job that builds packages from git repository. Gerrit plugin for Jenkins triggers build on code merge. At some point CI was broken and some changes were merged, but package was not built.

Add “Patchset created” trigger to your job

Make sure other jobs with “Patchset created “trigger disabled.

2016-04-06-19:44:40-screenshot

Go to Jenkins home and push “Query and trigger Gerrit Patches”

2016-04-06-19:41:35-screenshot

Search all merged changes

2016-04-06-19:42:11-screenshot

Select target change and push “Trigger selected”

2016-04-06-19:42:56-screenshot

Do not forget to revent job changes.