Change the filter to trigger post-image-creation
authorZhuoX Li <zhuox.li@intel.com>
Fri, 10 Oct 2014 07:05:48 +0000 (15:05 +0800)
committerZhuoX Li <zhuox.li@intel.com>
Fri, 10 Oct 2014 07:05:48 +0000 (15:05 +0800)
All project will trigger the post-image-creation in job_image.py
to provide more image info for IRIS.

Change-Id: Ib20875a4f433790df923941f87e2e2c29c73c17a

job_imager.py

index 9885e0f..65265d0 100755 (executable)
@@ -148,17 +148,16 @@ def main():
     url = os.path.join(fields.get('url_pub_base', ''),
                        fields['repo_path'], fields['images_path'])
 
-    # If the project is prerelease project, trigger the post-image-creation
-    if is_prerelease_project(fields.get('project', '')):
-        # Trigger info for post image creation job
-        data = {"image_xml": xml_string,
-                "name": fields['name'],
-                "project": fields.get('project', ''),
-                "status": status,
-                "url": url
-                }
-
-        trigger_next("POST-IMAGE-CREATION", data)
+    # All project will trigger the post-image-creation
+    # Trigger info for post image creation job
+    data = {"image_xml": xml_string,
+            "name": fields['name'],
+            "project": fields.get('project', ''),
+            "status": status,
+            "url": url
+            }
+
+    trigger_next("POST-IMAGE-CREATION", data)
 
     if status == 'success':
         print "The build was successful."