From: Yonghee Han Date: Sat, 18 Jun 2016 00:37:40 +0000 (+0900) Subject: update the info when images and images_count is same X-Git-Tag: submit/trunk/20190927.012743~576^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F95%2F75395%2F1;p=services%2Fjenkins-scripts.git update the info when images and images_count is same Change-Id: I51d907c246c32ad769f8e8af22adc202c3b62c86 --- diff --git a/job_post_image.py b/job_post_image.py index b67de2f..8e327ce 100755 --- a/job_post_image.py +++ b/job_post_image.py @@ -62,13 +62,14 @@ def main(): "status": status, "url": url}] } + build.update_info(info, project) saveinfo = build.get_info(project) #print "images count : %s %s \n" % ( len(saveinfo['images']), saveinfo['images_count']) - if len(saveinfo['images']) + 1 >= saveinfo['images_count']: + if len(saveinfo['images']) == saveinfo['images_count']: # clear chksnap flag info['chksnap'] = '0' - build.update_info(info, project) + build.update_info(info, project) if __name__ == "__main__": sys.exit(main())