Merge "Add the ability to filter on project"

This commit is contained in:
Jenkins 2015-11-15 13:49:48 +00:00 committed by Gerrit Code Review
commit 4b308c5308
1 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,10 @@ class EventProcessor(threading.Thread):
not re.match(build_queue_filter,
out_event['fields']['build_queue'])):
continue
project_filter = fileopts.get('project-filter')
if (project_filter and
not re.match(project_filter, out_event['fields']['project'])):
continue
output['source_url'] = source_url
output['retry'] = fileopts.get('retry-get', False)
output['event'] = out_event