From: SoonKyu Park Date: Mon, 18 Jun 2018 05:21:20 +0000 (+0900) Subject: Add tempary_test_code to reduce test time - which is basically disabled X-Git-Tag: submit/trunk/20190927.012743~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2e5d8a000e3b44df92e0cacc2339f38ef9143c3;p=services%2Fjenkins-scripts.git Add tempary_test_code to reduce test time - which is basically disabled Change-Id: I4f3447e96fc2d2277643514c5e29ab39ca11a79d --- diff --git a/job_gbs_dashboard_build.py b/job_gbs_dashboard_build.py index 79eed15..b1e0c82 100644 --- a/job_gbs_dashboard_build.py +++ b/job_gbs_dashboard_build.py @@ -83,6 +83,10 @@ def main(): 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) @@ -109,7 +113,9 @@ def main(): 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}) @@ -120,6 +126,8 @@ def main(): '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'], diff --git a/job_gbsdbbuild_one_repoarch_build.py b/job_gbsdbbuild_one_repoarch_build.py index 89303fd..96a50d4 100644 --- a/job_gbsdbbuild_one_repoarch_build.py +++ b/job_gbsdbbuild_one_repoarch_build.py @@ -187,6 +187,8 @@ def main(): (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: