[Buildbot-devel] Need to remove build directory using sudo on error
Luca
luca at lavabit.com
Thu Nov 29 06:46:32 UTC 2012
>
> 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...
>
You can remove a directory via a ShellCommand:
shell.ShellCommand(command=["rm", "-fr"]))
Consider fakeroot to avoid "blind" sudo
All the best,
Luca.
More information about the devel
mailing list