TPE-390 Disabling SR with git-obs-mapping configure.enable field 66/153566/1
authorhyokeun <hyokeun.jeon@samsung.com>
Fri, 29 Sep 2017 00:57:13 +0000 (09:57 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Fri, 29 Sep 2017 00:57:13 +0000 (09:57 +0900)
Change-Id: If9e7435b2770ebc76b21ade1cf8d9f03020fc9f1

job_submit.py

index 4037a39..a4f6a4e 100755 (executable)
@@ -503,6 +503,9 @@ def main(build_type, build, event, sr_count):
         obs_stg_prj = item['OBS_staging_project']
         obs_pkg = item['OBS_package']
         obs_use_specname = item['OBS_use_specname']
+        if 'config' in item and item['config'] is not None and item['config'].enable == 'false':
+            print 'SR for %s is not enabled' % (obs_target_prj)
+            continue
         if 'config' in item and item['config'] is not None and item['config'].build == 'no':
             print 'Set disable build for %s' % (obs_target_prj)
             enable_build = False