Re-modify gbs-ref-fullbuild job is trigged only when reference snapshot of specific... 21/146121/1
authorSoonKyu Park <sk7.park@samsung.com>
Fri, 25 Aug 2017 05:14:36 +0000 (14:14 +0900)
committerSoonKyu Park <sk7.park@samsung.com>
Fri, 25 Aug 2017 05:14:36 +0000 (14:14 +0900)
Change-Id: Icdf4e5c4275c7528b5c6d9c7047a24122c8a1047

job_gbs_ref_fullbuild.py

index 2fffd85..8becb62 100755 (executable)
@@ -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()