From 68dd7f237a8b1301f0b53457053785c830926797 Mon Sep 17 00:00:00 2001 From: hyokeun Date: Thu, 9 Mar 2017 17:15:12 +0900 Subject: [PATCH] Create ABS prerelease project on the public AS-IS: ABS prerelease was created SPIN infra. TO-BE: It will go through the same flow as other prereleases. Change-Id: I27ff57cc07d6b8ccbed43cf96e98c0ad7f37f3b9 --- job_submit.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/job_submit.py b/job_submit.py index 3f1c665..3f6d3f0 100755 --- a/job_submit.py +++ b/job_submit.py @@ -604,7 +604,11 @@ def main(build_type): tagger = mygit.get_tag(tag) # get list of target projects from git-obs-mapping - obs_target_prjs = git_obs_map(os.getenv("GERRIT_PROJECT"), git_branch) + 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]) + else: + obs_target_prjs = git_obs_map(os.getenv("GERRIT_PROJECT"), git_branch) + build = BuildService(obs_api, obs_user, obs_passwd) # prepare submit_info @@ -650,7 +654,9 @@ def main(build_type): print 'package name = %s' %(package) if build_type == 'prerelease': - if obs_stg_prj != 'prerelease': + if obs_stg_prj == 'abs' and git_branch.endswith('_tpk'): + print 'Create ABS prerelease project...' + elif obs_stg_prj != 'prerelease': print "%s is not 'prerelease' project in git-obs-mapping.xml." \ "It has been switched to submitobs workflow." \ "Skipping ..." % obs_stg_prj -- 2.7.4