add_to_img_list[-1]['rpm_name'] = pkg.values()[0]['rpm_name']
add_to_img_list[-1]['pattern_name'] = pkg.values()[0]['pattern_name']
+ #tempary_test_code
+ #temprary add_to_img_list
+# add_to_img_list = [{'git_name':'platform/core/api/haptic','rpm_name':'capi-system-haptic','pattern_name':'mobile-middleware'}, {'git_name':'platform/core/api/usb-accessory','rpm_name':'capi-system-usb-accessory','pattern_name':'mobile-middleware'}]
+
gbsbuild_tag = contents.get("tag")
print "Build Parameters:\nobs_prj: %s\nsnapshot_num: %s\ntrigger_category: %s\nnew_pkg_list: %s\nrm_pkg_list: %s\nrm_from_img_list: %s\ngbsbuild_tag:%s\n" %(obs_prj,snapshot_num,trigger_category,new_pkg_list,rm_pkg_list,rm_from_img_list,gbsbuild_tag)
repo_arch_list = []
for repo in gbsbuild_dic['repository']:
+#tempary_test_code for repo in ['standard']:
for arch in gbsbuild_dic['arch_list'][repo]:
+#tempary_test_code for arch in ['armv7l']:
print 'OBS Project: %s, repository: %s, architecture: %s gbs build start'\
%(gbsbuild_dic['obs_prj'],repo,arch)
repo_arch_list.append({"repo":repo,"arch":arch})
'new_pkg_list':new_pkg_list,
'rm_pkg_list':rm_pkg_list,
'rm_from_img_list':rm_from_img_list})
+#tempary_test_code
+# return 0
if buildmonitor_enabled:
gbs_update_data = {"tag" : gbsbuild_dic['gbsbuild_tag'],
(repo_init_sync_status,repo_init_sync_status_reason) = gbsbuild_sub._do_repo_init_sync(repository)
print repo_init_sync_status
print repo_init_sync_status_reason
+#tempary_test_code
+# return 0
# if repo init or repo sync failed, do not perform gbs build, and just update dashboard
if repo_init_sync_status == 'F':
if buildmonitor_enabled: