From 1341970b40b0d2c78edc06e9c0f4dd6d8763e327 Mon Sep 17 00:00:00 2001 From: shujunqiao Date: Wed, 14 May 2014 11:19:30 +0800 Subject: [PATCH] [ci skip], modify v3!=v2 about config.json. --- tools/jenkins-scripts/pull-request-builder.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/jenkins-scripts/pull-request-builder.py b/tools/jenkins-scripts/pull-request-builder.py index cfb99b5f19..8e61696efe 100755 --- a/tools/jenkins-scripts/pull-request-builder.py +++ b/tools/jenkins-scripts/pull-request-builder.py @@ -29,11 +29,13 @@ def set_description(desc, url): except: traceback.print_exc() -def check_current_3rd_libs(): +def check_current_3rd_libs(branch): #get current_libs config backup_files = range(2) current_files = range(2) config_file_paths = ['external/config.json','templates/lua-template-runtime/runtime/config.json'] + if (branch == 'v2'): + config_file_paths = ['external/config.json'] for i, config_file_path in enumerate(config_file_paths): if not os.path.isfile(config_file_path): raise Exception("Could not find 'external/config.json'") @@ -133,7 +135,7 @@ def main(): return(2) #copy check_current_3rd_libs - check_current_3rd_libs() + check_current_3rd_libs(branch) # Generate binding glue codes if(branch == 'v3'):