ABS - Do not report false check for non-exist tag
authorHyokeun Jeon <hyokeun.jeon@samsung.com>
Fri, 6 Sep 2019 01:55:22 +0000 (10:55 +0900)
committerHyokeun Jeon <hyokeun.jeon@samsung.com>
Fri, 6 Sep 2019 01:55:22 +0000 (10:55 +0900)
Change-Id: I3ba78a772a5eff3b73c238ea9017acb206ab535b

abs/job_abs_build.py

index edfc562..e25605e 100755 (executable)
@@ -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