From 20396df077b7b0b5d031cfff97ac590db379b64c Mon Sep 17 00:00:00 2001 From: Hyokeun Jeon Date: Fri, 6 Sep 2019 10:55:22 +0900 Subject: [PATCH] ABS - Do not report false check for non-exist tag Change-Id: I3ba78a772a5eff3b73c238ea9017acb206ab535b --- abs/job_abs_build.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/abs/job_abs_build.py b/abs/job_abs_build.py index edfc562..e25605e 100755 --- a/abs/job_abs_build.py +++ b/abs/job_abs_build.py @@ -453,7 +453,7 @@ def fetch_source(gerrit_env, src_root, project, branch=None, tag=None, patchset= if build_check is not None: tag = retrieve_last_accepted_tag(working_git, project, profile=profile, obs_project=obs_project) if tag is None: - return None, None + return None, 'no-tag-to-check' print 'Force to checkout build check for [%s]' % tag if tag is None: @@ -803,6 +803,9 @@ def start_build(fields): profile=data.get('profile'), \ obs_project=data.get('obs_project'), clone_type=data.get('buildcheck')) + if src_git is None and int_tag == 'no-tag-to-check': + print 'Do not report back to checker' + return 0 if src_git is None or int_tag is None: return 1 print 'Got tag: [%s]' % int_tag -- 2.7.4