Remove _tpk string from branch when fetching the mapping list 17/132817/1
authorhyokeun <hyokeun.jeon@samsung.com>
Thu, 8 Jun 2017 00:41:26 +0000 (09:41 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Thu, 8 Jun 2017 00:41:26 +0000 (09:41 +0900)
Change-Id: I22de92472273d39088614daa7be64530fc144e98

job_submit.py

index 6722d8f..75e0673 100755 (executable)
@@ -622,14 +622,13 @@ def main(build_type):
 
     tagger = mygit.get_tag(tag)
 
-    # get list of target projects from git-obs-mapping
+    # get project mappings from git-obs-mapping and git-ref-mapping
     if git_branch.endswith('_tpk'): # ABS - mappings w/o _tpk postfix(only for profiles).
         obs_target_prjs = git_obs_map(os.getenv("GERRIT_PROJECT"), git_branch.split('_tpk')[0])
+        obs_ref_prjs = get_ref_map(os.getenv("GERRIT_PROJECT"), git_branch.split('_tpk')[0])
     else:
         obs_target_prjs = git_obs_map(os.getenv("GERRIT_PROJECT"), git_branch)
-
-    # get lis of ref projects from git-ref-mapping
-    obs_ref_prjs = get_ref_map(os.getenv("GERRIT_PROJECT"), git_branch)
+        obs_ref_prjs = get_ref_map(os.getenv("GERRIT_PROJECT"), git_branch)
 
     build = BuildService(obs_api, obs_user, obs_passwd)