github twitter 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.

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

Search all merged changes

Select target change and push “Trigger selected”

Do not forget to revent job changes.