From: Hyokeun Jeon Date: Fri, 27 Sep 2019 10:20:12 +0000 (+0900) Subject: [ABS] Get default property file X-Git-Tag: accepted/tizen/devbase/services/20200104.053715~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F11%2F214911%2F1;p=services%2Fjenkins-scripts.git [ABS] Get default property file Change-Id: I64b382b8bebca91ce7dbae16a9721ad707aefe34 --- diff --git a/abs/job_abs_build.py b/abs/job_abs_build.py index e25605e..8cefc0c 100755 --- a/abs/job_abs_build.py +++ b/abs/job_abs_build.py @@ -272,8 +272,6 @@ def retrieve_project_property(src_git, tag): # As guided, the last is the main app from multi project listup. def_file_list = [] - # Single project - def_file_list.append(os.path.join(src_root, 'tizen-manifest.xml')) # Multi project multiproject_list_f = os.path.join(src_root, 'WORKSPACE') if os.path.isfile(multiproject_list_f): @@ -284,6 +282,12 @@ def retrieve_project_property(src_git, tag): def_file_list.append(os.path.join(src_root, x.rstrip(), 'tizen-manifest.xml')) elif os.path.isfile(os.path.join(src_root, x.rstrip(), 'config.xml')): def_file_list.append(os.path.join(src_root, x.rstrip(), 'config.xml')) + else: + # Single project + if os.path.isfile(os.path.join(src_root, 'tizen-manifest.xml')): + def_file_list.append(os.path.join(src_root, 'tizen-manifest.xml')) + if os.path.isfile(os.path.join(src_root, 'config.xml')): + def_file_list.append(os.path.join(src_root, 'config.xml')) #for def_file in def_file_list: #TODO: Should be the last item