Search code examples
mercurialbuildbot

Is there any working example of buildbot with Mercurial


buildbot version being used is:

$ buildbot --version
Buildbot version: 0.8.3p1
Twisted version: 10.1.0

Checkconfig, gives me errors:

$ buildbot checkconfig
/usr/lib/python2.6/dist-packages/twisted/mail/smtp.py:10: DeprecationWarning: the MimeWriter module is deprecated; use the email package instead
  import MimeWriter, tempfile, rfc822
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-py2.6.egg/buildbot/scripts/runner.py", line 1071, in doCheckConfig
    ConfigLoader(configFileName=configFileName)
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-py2.6.egg/buildbot/scripts/checkconfig.py", line 46, in __init__
    self.loadConfig(configFile, check_synchronously_only=True)
  File "/usr/local/lib/python2.6/dist-packages/buildbot-0.8.3p1-py2.6.egg/buildbot/master.py", line 883, in loadConfig
    % (b['name'], n))
ValueError: builder runtests uses undefined slave example-slave
$ 

Here is one example i looked at :

http://agiletesting.blogspot.com/2006/02/continuous-integration-with-buildbot.html


Solution

  • The example you looked at is very old; c['bots'] was renamed to c['slaves'] a while ago, as well as many more changes.

    I'd suggest taking a look at the Buildbot manual for configuration:

    http://buildbot.net/buildbot/docs/current/Configuration.html#Configuration

    And possibly also the installation section, to make sure you did what was required to set up the more recent versions of BuildBot, not just older versions:

    http://buildbot.net/buildbot/docs/current/Installation.html#Installation

    One example that was offered was the IcedTea buildbot, which builds from Mercurial repos. Configuration is browsable here:

    http://icedtea.classpath.org/hg/buildbot/file

    You're also welcome to drop by #buildbot on irc.freenode.net for help.