Gerrit is a Prow-gerrit adapter for handling CI on gerrit workflows. It can poll gerrit changes from multiple gerrit instances, and trigger presubmits on Prow upon new patchsets on Gerrit changes, and postsubmits when Gerrit changes are merged.
When deploy the gerrit component, you need to specify
--config-path to your prow config, and optionally
--job-config-path to your prowjob config if you have split them up.
--gerrit-projects to the gerrit projects you want to poll against.
If you want prow to interact with gerrit project
bar on instance
and also project
baz on instance
gerrit-2.googlesource.com, then you can set:
--cookiefile allows you to specify a git https cookie file to interact with your gerrit instances, leave
it empty for anonymous access to gerrit API.
--last-sync-fallback should point to a persistent volume that saves your last poll to gerrit.
Also take a look at gerrit related packages for implementation details.
You might also want to deploy Crier which reports job results back to gerrit.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.