Join GitHub today
Gerrit source step doesn't work well with multiple codebases #3460
I have a project that consists of multiple codebases, usually with the same branch names, within a gerrit instance.
My GerritChangeSource monitors them and performs pre-commit testing on the project (on patchset-created events) by checking out each of these codebases using a Gerrit step.
However, Gerrit.build.getProperty("event.patchSet.ref") is not currently indexed by codebase, so every Gerrit step attempts to checkout the change ref, which fails on all but the modified codebase.
I currently work around this in my buildbot config by subclassing Gerrit: