Caution
Buildbot no longer supports Python 2.7 on the Buildbot master.
2.5.11.3. Bzr
- class buildbot.steps.source.bzr.Bzr
bzr is a descendant of Arch/Baz, and is frequently referred to as simply Bazaar. The repository-vs-workspace model is similar to Darcs, but it uses a strictly linear sequence of revisions (one history per branch) like Arch. Branches are put in subdirectories. This makes it look very much like Mercurial.
from buildbot.plugins import steps
factory.addStep(steps.Bzr(mode='incremental',
repourl='lp:~knielsen/maria/tmp-buildbot-test'))
The step takes the following arguments:
repourl(required unless
baseURLis provided): the URL at which the Bzr source repository is available.baseURL(required unless
repourlis provided): the base repository URL, to which a branch name will be appended. It should probably end in a slash.defaultBranch(allowed if and only if
baseURLis provided): this specifies the name of the branch to use when a Build does not provide one of its own. This will be appended tobaseURLto create the string that will be passed to thebzr checkoutcommand. IfalwaysUseLatestisTruethen the branch and revision information that comes with the Build is ignored and branch specified in this parameter is used.
mode
method
No method is needed for incremental mode. For full mode,
methodcan take the values shown below. If no value is given, it defaults tofresh.
clobberThis specifies to remove the
workdirand make a full checkout.freshThis method first runs
bzr clean-treeto remove all the unversioned files thenupdatethe repo. This remove all unversioned files including those in .bzrignore.cleanThis is same as fresh except that it doesn’t remove the files mentioned in
.bzrginorei.e, by runningbzr clean-tree --ignore.copyA local bzr repository is maintained and the repo is copied to
builddirectory for each build. Before each build the local bzr repo is updated then copied tobuildfor next steps.