Bug 1168979 part 8 - Fix breakage in decision task for non-try branches; r=mrrrgn

This commit is contained in:
Anthony Miyaguchi
2015-07-16 14:56:45 -07:00
parent 14476fd0a4
commit a128124c4a
3 changed files with 8 additions and 5 deletions

View File

@@ -261,9 +261,10 @@ def parse_commit(message, jobs):
# Generate list of post build tasks that run on this build
post_build_jobs = []
for job_flag in jobs['flags']['post-build']:
for job_flag in jobs['flags'].get('post-build', []):
job = jobs['post-build'][job_flag]
if 'allowed_build_tasks' in job and build_task not in job['allowed_build_tasks']:
if ('allowed_build_tasks' in job and
build_task not in job['allowed_build_tasks']):
continue
post_build_jobs.append(copy.deepcopy(job))