[Buildbot-devel] How to suppress "rm -rf" at start of SVN update operation???
Peter Barada
peter.barada at logicpd.com
Fri Jul 1 20:58:18 UTC 2011
How do I suppress the "rm -rf build" that is done at the start of a
job? This wasn't a problem when I ran buildbot-0.8.3p1 (w.o
ChangeFilters), but when I upgraded to 0.8.4 (Twisted 10.1.0) it starst
off with a "rm -rf .../build" to wipe out the build tree. Here's (a
snippet of) what I have for master.cfg:
LTIB_REPO_20091102='svn+ssh://LOGIC+peterb@cvs.logicpd.com/cvs/eps_svn/software/products/linux/LTIB/trunk/ltib-20091102'
svn_poller = SVNPoller(
svnurl=LTIB_REPO_20091102,
pollinterval=5*60, # seconds
histmax=10,
svnbin='/usr/bin/svn',
project='repo-ltib-20091102',
)
c['schedulers'].append(Scheduler(name="LTIB-20091102",
change_filter=ChangeFilter(project='repo-ltib-20091102'),
treeStableTimer=2*60,
builderNames=["buildbot-LTIB-20091102"]))
f1 = factory.BuildFactory()
f1.addStep(SVN(mode='update', baseURL=LTIB_REPO_20091102, defaultBranch=''))
f1.addStep(Compile(command=["./ltib", "-b", "--preconfig",
"config/platform/omap3logic/defconfig"],
haltOnFailure=True))
b1 = {'name': "buildbot-LTIB-20091102",
'slavename': "example-slave",
'builddir': "ltib-20091102",
'factory': f1,
}
c['builders'] = [b1]
The start of the update log file looks like:
starting svn operation
rm -rf /home/peter/work/logic/buildbot/ltib-slave/ltib-OMAPPSP/build
in dir /home/peter/work/logic/buildbot/ltib-slave/ltib-OMAPPSP (timeout 1200 secs)
watching logfiles {}
argv: ['rm', '-rf', '/home/peter/work/logic/buildbot/ltib-slave/ltib-OMAPPSP/build']
environment:
I don't want to remove the ltib-OMAPPSP/build tree since inside of the
tree is a LInux root filesystem (which "rm -rf" fails due to root owned
files/directories in it) and also it takes a looong time to rebuild from
scratch. I tried adding a "always_purge=False" to the SVN(), but it has
no effect.
Any suggestions are most appreciated!
--
Peter Barada
peter.barada at logicpd.com
More information about the devel
mailing list