2.5.12.26. Robocopy
- class buildbot.steps.mswin.Robocopy
This step runs robocopy on Windows.
Robocopy is available in versions of Windows starting with Windows Vista and Windows Server 2008. For previous versions of Windows, it’s available as part of the Windows Server 2003 Resource Kit Tools.
from buildbot.plugins import steps, util
f.addStep(
steps.Robocopy(
name='deploy_binaries',
description='Deploying binaries...',
descriptionDone='Deployed binaries.',
source=util.Interpolate('Build\\Bin\\%(prop:configuration)s'),
destination=util.Interpolate('%(prop:deploy_dir)\\Bin\\%(prop:configuration)s'),
mirror=True
)
)
Available constructor arguments are:
sourceThe path to the source directory (mandatory).
destinationThe path to the destination directory (mandatory).
filesAn array of file names or patterns to copy.
recursiveCopy files and directories recursively (
/Eparameter).mirrorMirror the source directory in the destination directory, including removing files that don’t exist anymore (
/MIRparameter).moveDelete the source directory after the copy is complete (
/MOVEparameter).exclude_filesAn array of file names or patterns to exclude from the copy (
/XFparameter).exclude_dirsAn array of directory names or patterns to exclude from the copy (
/XDparameter).custom_optsAn array of custom parameters to pass directly to the
robocopycommand.verboseWhether to output verbose information (
/V /TS /FPparameters).
Note that parameters /TEE /NP will always be appended to the command to signify, respectively, to output logging to the console, use Unicode logging, and not print any percentage progress information for each file.