Use latest commit id for gbs commit 81/170081/1
authorhyokeun <hyokeun.jeon@samsung.com>
Tue, 13 Feb 2018 08:02:41 +0000 (17:02 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Tue, 13 Feb 2018 08:02:41 +0000 (17:02 +0900)
Change-Id: I73002af434ea26642bc40ac69cc5e56f1eaeb1e3

common/buildmonitor_extention.py

index 6cc2b55..4736fe5 100644 (file)
@@ -599,7 +599,7 @@ class GbsDashboard(BuildMonitorExtention):
                      SELECT * FROM ( \
                       (SELECT id FROM gbs_status WHERE tag=%s) AS tmp1, \
                       (SELECT gc.id FROM git_commit gc, git_repository gr WHERE gr.name=%s \
-                        AND gr.id=gc.git_repository_id AND gc.commit_id=%s) AS tmp2, \
+                        AND gr.id=gc.git_repository_id AND gc.commit_id=%s ORDER BY gc.id DESC LIMIT 1) AS tmp2, \
                       (SELECT id FROM gbs_commit_mode_lookup WHERE mode=%s) AS tmp3) \
                      WHERE NOT EXISTS ( \
                       SELECT gc.id FROM gbs_commit gc, gbs_status gs, git_commit gitc, git_repository gr \