Missing work_branch init routine 39/212039/2
authorHyokeun Jeon <hyokeun.jeon@samsung.com>
Tue, 13 Aug 2019 12:05:12 +0000 (21:05 +0900)
committerHyokeun Jeon <hyokeun.jeon@samsung.com>
Tue, 13 Aug 2019 12:22:44 +0000 (21:22 +0900)
Change-Id: If51f6d2a3ab19e8b09f8399533f5017569825fd8

job_submit.py

index 52409db..28820ec 100755 (executable)
@@ -495,6 +495,8 @@ def main(build_type, build, event, sr_count):
 
     # get project mappings from git-obs-mapping and git-ref-mapping
     if git_branch.endswith('_tpk'): # ABS - mappings w/o _tpk postfix(only for profiles).
+        # Set default to the current branch
+        work_branch = git_branch
         if os.getenv('ABS_SUPPORTED_PROFILES', None):
             for sp in os.getenv('ABS_SUPPORTED_PROFILES').split(','):
                 work_branch = work_branch.replace('_%s_tpk' % sp.lower(), '')