From 9c15782f20f81ed1acacde42dfa41207ca540d36 Mon Sep 17 00:00:00 2001 From: SoonKyu Park Date: Fri, 25 Aug 2017 14:14:36 +0900 Subject: [PATCH] Re-modify gbs-ref-fullbuild job is trigged only when reference snapshot of specific tizen profile is updated Change-Id: Icdf4e5c4275c7528b5c6d9c7047a24122c8a1047 --- job_gbs_ref_fullbuild.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/job_gbs_ref_fullbuild.py b/job_gbs_ref_fullbuild.py index 2fffd85..8becb62 100755 --- a/job_gbs_ref_fullbuild.py +++ b/job_gbs_ref_fullbuild.py @@ -423,10 +423,6 @@ def main(): mygit.checkout(git_branch) commit_msg=mygit.show(mygit.get_commits()[0]).split('\n')[4].replace(" ","") - if commit_msg.find(TIZEN_PROFILE) != -1: - print "skip fullbuild...\nGBS reference fullbuild is triggered only for %s" %TIZEN_PROFILE - return 1 - ref_binary = {} lines = open(prjdir+'/'+filename).readlines() @@ -443,6 +439,11 @@ def main(): _update_ref_bin_index(ref_binary) + print 'commit message is %s' %commit_msg + if commit_msg.find(ref_profile['profile']) == -1 or commit_msg.find(ref_profile['t_ver']) == -1: + print "skip fullbuild...\nGBS reference fullbuild is triggered only for %s" %TIZEN_PROFILE + return 0 + replace_depanneur_file() do_gbs_build() do_image_creation() -- 2.7.4