2.5.12.4. CVS
- class buildbot.steps.source.cvs.CVS
The CVS build step performs a CVS checkout or update.
from buildbot.plugins import steps
factory.addStep(steps.CVS(mode='incremental',
cvsroot=':pserver:me@cvs.example.net:/cvsroot/myproj',
cvsmodule='buildbot'))
This step takes the following arguments:
cvsroot(required): specify the CVSROOT value, which points to a CVS repository, probably on a remote machine. For example, if Buildbot was hosted in CVS then the CVSROOT value you would use to get a copy of the Buildbot source code might be
:pserver:anonymous@cvs.example.net:/cvsroot/buildbot.cvsmodule(required): specify the cvs
module, which is generally a subdirectory of theCVSROOT. The cvsmodule for the Buildbot source code isbuildbot.brancha string which will be used in a
-rargument. This is most useful for specifying a branch to work on. Defaults toHEAD. IfalwaysUseLatestisTruethen the branch and revision information that comes with the Build is ignored and branch specified in this parameter is used.global_optionsa list of flags to be put before the argument
checkoutin the CVS command.extra_optionsa list of flags to be put after the
checkoutin the CVS command.
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
cvsdisardin the build directory, then updates it. This requirescvsdiscardwhich is a part of the cvsutil package.cleanThis method is the same as
method='fresh', but it runscvsdiscard --ignoreinstead ofcvsdiscard.copyThis maintains a
sourcedirectory for source, which it updates copies to the build directory. This allows Buildbot to start with a fresh directory, without downloading the entire repository on every build.
loginPassword to use while performing login to the remote CVS server. Default is
Nonemeaning that no login needs to be performed.