From: hyokeun Date: Thu, 9 Mar 2017 08:15:12 +0000 (+0900) Subject: Create ABS prerelease project on the public X-Git-Tag: submit/trunk/20190927.012743~512 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68dd7f237a8b1301f0b53457053785c830926797;p=services%2Fjenkins-scripts.git 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 --- 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