Removed old full clean code from bb config

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-12-04 16:53:01 -05:00
parent b582a5d248
commit cf58ba6ca6

View File

@@ -54,35 +54,6 @@ from buildbot.steps.slave import MakeDirectory, RemoveDirectory, CopyDirectory
from buildbot.steps.transfer import DirectoryUpload, FileDownload
from buildbot.process import properties
"""
from http://ss64.com/nt/del.html
deltree.cmd script, save it somewhere on the system PATH on windows
:: DelTree.cmd
:: Remove all files and subfolders but NOT the root folder
:: From tip 617 at JsiFAQ.com
@echo off
if "%1"=="" goto:eof
pushd %1
del /q *.*
for /f "Tokens=*" %%G in ('dir /B') do rd /s /q "%%G"
popd
"""
@properties.renderer
def cleanCommand(props):
fullclean = props.getProperty('fullclean', default = False)
is_windows = props.getProperty('slavename').find('windows') >= 0
if fullclean:
if is_windows:
command = ' '.join(['deltree','.','&&','echo','fully cleaned'])
else:
command = ' '.join(['rm','-rfv','*','&&','echo','fully cleaned'])
else:
command = ['echo','no clean requested;', 'fullclean:', props.getProperty('fullclean')]
return command
# A custom platform and Python identifiers
platformID = {
"windows" : 1,