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

Peter Barada peter.barada at logicpd.com
Wed Nov 28 16:03:39 UTC 2012


I use buildbot as part of a continuous integration system for a LTIB
project I'm working on.

LTIB builds a complete Linux system which includes a rootfs owned by
root (to allow root setuid files).  In the event that a SVN update of
the source fails, buildbot attempts to completely remove the build
directory and check out the source again (I assume for recovery). 
Unfortunately this fails since the slave isn't running as root (since
SVN access uses SSH access to the server as well as LTIB won't run as
root) - causing the job and any restarts of it to fail.

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...

-- 
Peter Barada
peter.barada at logicpd.com





More information about the devel mailing list