gocd/rabbit-openqa.py: Ignore jobs without group
Jobs without a group are not production jobs either. This also avoids a KeyError later.
This commit is contained in:
parent
43319024df
commit
b751486ca1
@ -292,7 +292,7 @@ class Listener(PubSubConsumer):
|
||||
|
||||
def is_production_job(self, job):
|
||||
if '/' in job['settings'].get('BUILD', '/') or \
|
||||
'Development' in job['group']:
|
||||
'group' not in job or 'Development' in job['group']:
|
||||
return False
|
||||
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user