[Buildbot-devel] Need to remove build directory using sudo on error

Dustin J. Mitchell dustin at v.igoro.us
Sat Dec 1 16:22:52 UTC 2012

On Wed, Nov 28, 2012 at 11:03 AM, Peter Barada <peter.barada at logicpd.com> wrote:
> Where in the code can I tell the buildslave to use a script via sudo
> instead of "rm -rf" to remove the build directory?  How would I make
> this a configuration option (i.e. how to tell buildslave to run
> "remove-build-dir" using sudo instead of "rm -rf")? Might be something
> other users find useful...

This could be added as an option to the master-side source commands.
Currently they use a slave-side implementation, to work around some
more basic problems with rm -rf (and to work properly on Windows), but
the option could replace that with a particular shell invocation -
'sudo rm -rf xxx' in your case, and maybe something more complex for


More information about the devel mailing list