My usual advice is to write a shell script that does it, and then invoke the shell script from a build step. Less hassles with quoting that way, and less interlocking of your workflow with buildbot. It's good to be able to invoke the build by hand, which is hard if it's encoded in buildbot steps.