Remove date parse error when updating ABS data
authorhyokeun <hyokeun.jeon@samsung.com>
Thu, 6 Dec 2018 06:44:23 +0000 (15:44 +0900)
committerYonghee Han <onstudy@samsung.com>
Thu, 31 Jan 2019 01:21:23 +0000 (10:21 +0900)
Change-Id: I3d594d686be0039a8c2e44769bdee5c70a3a00d3

abs/job_update_abs_rbs_status_for_dashboard.py

index 6f28507..310867a 100644 (file)
@@ -148,6 +148,11 @@ def update_commit_tag_for_abs(bm_ext, param):
     if git_path is not None:
         update_repository(git_path)
 
+    if len(commit_date.split(' ')) >= 3:
+        commit_date = ' '.join(commit_date.split(' ')[:2])
+    if len(tag_date.split(' ')) >= 3:
+        tag_date = ' '.join(tag_date.split(' ')[:2])
+
     #Find git repo id
     git_path_id = get_git_path_id(git_path)
     assert git_path_id != 0