:
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()
checkout_default = Mercurial(repourl="/home/user/test/my_project/",
defaultBranch='default',
branchType='inrepo',
haltOnFailure = True)
factory.addStep(checkout_default)
, , , 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, .