Add support to log gearman client to filter on build-queue
This commit adds a new job filter to the gearman client to filter based on the build queue. This is used for the subunit jobs which we don't want to run on check jobs. Change-Id: If81fe98d8d67bb718c53a963695a7d06f5f6625d
This commit is contained in:
parent
5a480a5b1e
commit
097322be25
@ -72,6 +72,11 @@ class EventProcessor(threading.Thread):
|
||||
if (job_filter and
|
||||
not re.match(job_filter, out_event['fields']['build_name'])):
|
||||
continue
|
||||
build_queue_filter = fileopts.get('build-queue-filter')
|
||||
if (build_queue_filter and
|
||||
not re.match(build_queue_filter,
|
||||
out_event['fields']['build_queue'])):
|
||||
continue
|
||||
output['source_url'] = source_url
|
||||
output['retry'] = fileopts.get('retry-get', False)
|
||||
output['event'] = out_event
|
||||
|
@ -15,8 +15,10 @@ subunit-files:
|
||||
- name: logs/testrepository.subunit
|
||||
retry-get: True
|
||||
job-filter: 'gate-(tempest|grenade)-dsvm.*'
|
||||
build-queue-filter: 'gate'
|
||||
- name: logs/old/testrepository.subunit
|
||||
job-filter: 'gate-grenade-dsvm.*'
|
||||
build-queue-filter: 'gate'
|
||||
|
||||
# List of files to source logs from.
|
||||
source-files:
|
||||
|
Loading…
Reference in New Issue
Block a user