From: hyokeun Date: Thu, 6 Dec 2018 06:44:23 +0000 (+0900) Subject: Remove date parse error when updating ABS data X-Git-Tag: submit/trunk/20190927.012743~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd1e1bde1f2c0a910bfc62459f80120de6a5a8fb;p=services%2Fjenkins-scripts.git Remove date parse error when updating ABS data Change-Id: I3d594d686be0039a8c2e44769bdee5c70a3a00d3 --- diff --git a/abs/job_update_abs_rbs_status_for_dashboard.py b/abs/job_update_abs_rbs_status_for_dashboard.py index 6f28507..310867a 100644 --- a/abs/job_update_abs_rbs_status_for_dashboard.py +++ b/abs/job_update_abs_rbs_status_for_dashboard.py @@ -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