[BuildMonitor] fix 'BUILD-MONITOR(Post_Image)' job fail issue after 'SR Accept' 70/116770/1
authorSungHun Hwang <sh0924.hwang@samsung.com>
Tue, 28 Feb 2017 06:21:34 +0000 (15:21 +0900)
committerSungHun Hwang <sh0924.hwang@samsung.com>
Tue, 28 Feb 2017 07:18:52 +0000 (16:18 +0900)
1. After 'SR Accept', occasionally,
   'BUILD-MONITOR' job which bm_stage is 'Post_Image' failed
   this is bcz env file is overlapped and
   the order of inserting the table_id is twisted

   So I fixed the trigger_next code

2. fix typo

Change-Id: I2714c58fd54fb46f3e0a891e8f330ea5a5f37c8e
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
job_create_snapshot.py

index 4e9c788..7c9d1a0 100755 (executable)
@@ -248,7 +248,7 @@ def make_repo(project, backenddb, base_path, live_repo_base):
                       }
             #print '[%s] for rest pkgs!! BM_PKG_LIMIT(%s), bm_pkg_count(%s), bm_trg_count(%s)\n' \
             #      % (__file__, BM_PKG_LIMIT, bm_pkg_count, bm_trg_count)
-            trigger_next("BUILD-MONITOR-3-%s-%s-%s-trb_%s" % (bm_stage, bm_repo, bm_arch, bm_trg_count), bm_data)
+            trigger_next("BUILD-MONITOR-3-%s-%s-%s-trg_%s" % (bm_stage, bm_repo, bm_arch, bm_trg_count), bm_data)
 
         # Generate image info to builddata/ dir
         repomaker.gen_image_info()
@@ -383,7 +383,7 @@ def main():
                        "bm_start_datetime" : str(bm_start_datetime),
                        "project" : project,
                       }
-            trigger_next("BUILD-MONITOR-POST", bm_data)
+            trigger_next("BUILD-MONITOR_Post_Image", bm_data)
 
 if __name__ == '__main__':
     try: