[Buildbot-devel] How to make a sudo remove to working directory

Burak Yilmazturk yilmazturkburak at gmail.com
Fri Dec 30 10:02:07 UTC 2011

2011/12/30 Dustin J. Mitchell <dustin at v.igoro.us>

> On Wed, Dec 21, 2011 at 9:36 AM, Burak Yilmazturk
> <yilmazturkburak at gmail.com> wrote:
> > I want to use buildbot in nightly concept, so every night I want to begin
> > each build with a fresh working copy. I use clobber mode on svn to get a
> > fresh copy of my project and it uses "rm --rf " to remove working
> directory,
> > but in somewhere of our build process some files created with sudo, so I
> get
> > a "can not remove" error in svn step of nightly build, What could be the
> > easiest way to remove those files?
> You'll probably need to add a similar 'sudo rm -rf' -- either as a
> cleanup step *after* your build runs, or better, as a step before the
> Source step.
> Dustin

Actually I put sudo infront of "rm -rf" call in buildslave source, even if
I do not want to change source. But this one is easy to remember to be able
to repeat while upgrading. I want to ask that it could not be good to add
to clobber mode a parameter or something like this clobber -f, which put a
sudo infront of remove command.

By the way I now we should not use sudo in build process but we have to use.

Thanks in advance
Burak Yılmaztürk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20111230/9dd28172/attachment.html>

More information about the devel mailing list