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
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