From a32e7a96eac38d2a996203a614dc9b21e8c5439f Mon Sep 17 00:00:00 2001 From: ZhuoX Li Date: Fri, 10 Oct 2014 15:05:48 +0800 Subject: [PATCH] Change the filter to trigger post-image-creation 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 | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/job_imager.py b/job_imager.py index 9885e0f..65265d0 100755 --- a/job_imager.py +++ b/job_imager.py @@ -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." -- 2.7.4