Is there any working buildbot example with Mercurial

The buildbot version is used:

$ 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 that I looked at:

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

+3
source share
2 answers

The example you were looking at is very old; c['bots']some time ago it was renamed c['slaves'], as well as many more changes.

I would advise taking a look at the Buildbot tutorial for configuration:

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

, , , , , BuildBot, :

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

, , IcedTea, Mercurial. :

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

#buildbot irc.freenode.net .

+2

:

Buildbot version: 0.8.8
Twisted version: 13.2.0

, hg, git . , .

, master.cfg: sourcesources, schedulers builders, , .

changesources:

from buildbot.changes.hgpoller import HgPoller
therepo=HgPoller(repourl="/home/user/test/my_project/",
                           branch='default',
                           pollInterval=30,
                           workdir='myrepo')

c['change_source'] = []
c['change_source'].append(therepo)

HgPoller PBChangeSource. , ( ).

repourl hg. URL, "hg pull" "hg clone", . , , http- .

branch on mercurial . pollInterval=30 30 , ( , > 30 ).

, , (-):

from buildbot.process.factory import BuildFactory
from buildbot.steps.source.mercurial import Mercurial

factory = BuildFactory()

#watch out: this function is Mercurial, NOT Hg

checkout_default = Mercurial(repourl="/home/user/test/my_project/",
                      defaultBranch='default',
                      branchType='inrepo',
                      haltOnFailure = True)

factory.addStep(checkout_default)

# then you add some build instructions and don't forget to import the necessary...

, , , defaultBranch branchType. Git(), . , , , python:

import buildbot
help(buildbot.steps.source.mercurial)

, Mercurial, buildbot.steps.source.mercurial, Mercurial, buildbot.steps.source.mercurial. ( , ). tomprince buildbot IRC freenode, .

+4

All Articles