From a18116aaa462a4420b1755beaac808570b4cd1fb Mon Sep 17 00:00:00 2001 From: andyque Date: Tue, 7 Jul 2015 16:56:38 +0800 Subject: [PATCH] minor improvements --- tools/jenkins-scripts/daily-build.py | 16 ++++++---------- tools/jenkins-scripts/runtime-daily-build.py | 2 +- tools/jenkins-scripts/templates-daily-build.py | 2 +- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/tools/jenkins-scripts/daily-build.py b/tools/jenkins-scripts/daily-build.py index e8a7bc271d..107e1292f5 100644 --- a/tools/jenkins-scripts/daily-build.py +++ b/tools/jenkins-scripts/daily-build.py @@ -102,16 +102,12 @@ def main(): exit_code = 1 # #clean workspace, we don't won't clean the repository - # if remote_build == 1: - # os.system("cd " + workspace) - # os.system("git reset --hard") - # os.system("git clean -xdf -f") - # else: - # print "local build, no need to cleanup" - #remove stats module - os.system("cd " + workspace) - os.system("rm tools/cocos2d-console/bin/cocos_stat.py") - os.system("rm tools/cocos2d-console/bin/cocos_stat.pyc") + if remote_build == 1: + os.system("cd " + workspace) + os.system("git reset --hard") + os.system("git clean -xdf -f") + else: + print "local build, no need to cleanup" return(exit_code) diff --git a/tools/jenkins-scripts/runtime-daily-build.py b/tools/jenkins-scripts/runtime-daily-build.py index 40b674711c..23d52bd7d2 100644 --- a/tools/jenkins-scripts/runtime-daily-build.py +++ b/tools/jenkins-scripts/runtime-daily-build.py @@ -26,7 +26,7 @@ else: # for local debugging purpose, you could change the value to 0 and run # this scripts in your local machine -remote_build = 0 +remote_build = 1 def download_3rd_library(): #run download-deps.py diff --git a/tools/jenkins-scripts/templates-daily-build.py b/tools/jenkins-scripts/templates-daily-build.py index 2d56400daf..ffa29780ab 100644 --- a/tools/jenkins-scripts/templates-daily-build.py +++ b/tools/jenkins-scripts/templates-daily-build.py @@ -26,7 +26,7 @@ else: # for local debugging purpose, you could change the value to 0 and run # this scripts in your local machine -remote_build = 0 +remote_build = 1 def download_3rd_library(): #run download-deps.py