[Buildbot-devel] gerrit integration

Nicolas Bock nicolasbock at gmail.com
Tue Mar 31 12:36:47 UTC 2015


Hi,

I can't seem to figure out how to integrate buildbot with gerrit. In
master.cfg I have:

c['change_source'].append(GerritChangeSource("host", "some_name"))
c['schedulers'].append(AnyBranchScheduler(name="gerrit",
  change_filter=GerritChangeFilter(eventtype="patchset-created"))
factory.addStep(Gerrit(repourl="URL"))

The build is triggered correctly, but the git command (from Gerrit())
is not fetching the commit properly. It is doing a 'git reset --hard
SHA1" instead of "git fetch SHA1; git checkout SHA1". Am I missing an
argument to the Gerrit() constructor in the BuildFactory?

Thanks already,

nick




More information about the devel mailing list