From: hyokeun Date: Thu, 8 Jun 2017 00:41:26 +0000 (+0900) Subject: Remove _tpk string from branch when fetching the mapping list X-Git-Tag: submit/trunk/20190927.012743~435^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F132817%2F1;p=services%2Fjenkins-scripts.git Remove _tpk string from branch when fetching the mapping list Change-Id: I22de92472273d39088614daa7be64530fc144e98 --- diff --git a/job_submit.py b/job_submit.py index 6722d8f..75e0673 100755 --- a/job_submit.py +++ b/job_submit.py @@ -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)