[users at bb.net] Gerrit Component Not Found

Dustin J. Mitchell dustin at v.igoro.us
Thu Oct 29 01:11:14 UTC 2015


Ah, looks like a bug.  Try adding

from buildbot.steps.source.gerrit import Gerrit

and then use `Gerrit` instead of `steps.Gerrit`.

I'll get the bug fixed.

Dustin

On Wed, Oct 28, 2015 at 5:25 PM, Justin Fehr <Justin.Fehr at kinze.com> wrote:
> Hi all,
>
>
>
> I am trying to set up buildbot to work with gerrit. While working on the
> config file for master I get the following error from the checkconfig:
>
>
>
> error while parsing config file:
>
> Traceback (most recent call last):
>
>   File "./bin/buildbot", line 4, in <module>
>
>     runner.run()
>
>   File
> "/home/buildbot/Documents/buildbot/bb-master/local/lib/python2.7/site-packages/buildbot/scripts/runner.py",
> line
>
> 763, in run
>
>     sys.exit(subcommandFunction(subconfig))
>
>   File
> "/home/buildbot/Documents/buildbot/bb-master/local/lib/python2.7/site-packages/buildbot/scripts/checkconfig.py",
>
> line 55, in checkconfig
>
>     return _loadConfig(basedir=basedir, configFile=configFile, quiet=quiet)
>
>   File
> "/home/buildbot/Documents/buildbot/bb-master/local/lib/python2.7/site-packages/buildbot/scripts/checkconfig.py",
>
> line 26, in _loadConfig
>
>     basedir, configFile)
>
> --- <exception caught here> ---
>
>   File
> "/home/buildbot/Documents/buildbot/bb-master/local/lib/python2.7/site-packages/buildbot/config.py",
> line 156, in
>
> loadConfig
>
>     exec f in localDict
>
>   File "master/master.cfg", line 68, in <module>
>
>     kinzebuildfactory.addStep(steps.Gerrit(repourl=gerrit_repo, mode="full",
> retry=[60,60],timeout=3600))
>
>   File
> "/home/buildbot/Documents/buildbot/bb-master/local/lib/python2.7/site-packages/buildbot/plugins/db.py",
> line 238,
>
> in __getattr__
>
>     raise AttributeError(str(err))
>
> exceptions.AttributeError: Unknown component name: Gerrit
>
>
>
> Configuration Errors:
>
>   error while parsing config file: Unknown component name: Gerrit (traceback
> in logfile)
>
>
>
> I am setting it up as shown in the example gerrit file found here:
> https://github.com/buildbot/buildbot/blob/master/master/docs/examples/git_gerrit.cfg
> specifically line 80 of the example corresponds to the problematic line 68
> in my file.
>
>
>
> Not sure where to go from here.
>
>
>
> Thanks,
>
>
>
> J
>
>
>
>
> ________________________________
>
> Electronic Privacy Notice: This e-mail, and any attachments, contains
> information that is, or may be, covered by electronic communications privacy
> laws, and is confidential and proprietary in nature. If you are not the
> intended recipient, please be advised that retaining, using, copying,
> distributing, or otherwise disclosing this information is strictly
> prohibited. Instead, please reply to the sender that you have received this
> communication in error, and then immediately delete and/or destroy your
> copy. Thank you for your cooperation.
>
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users


More information about the users mailing list