add DisableNotifications option
This commit is contained in:
parent
b2b40dc789
commit
e98354c795
2 changed files with 5 additions and 0 deletions
|
|
@ -3580,6 +3580,8 @@ def get_notification_recipients(build, tag_id, state):
|
|||
return emails_uniq
|
||||
|
||||
def tag_notification(is_successful, tag_id, from_id, build_id, user_id, ignore_success=False, failure_msg=''):
|
||||
if context.opts.get('DisableNotifications'):
|
||||
return
|
||||
if is_successful:
|
||||
state = koji.BUILD_STATES['COMPLETE']
|
||||
else:
|
||||
|
|
@ -3604,6 +3606,8 @@ def tag_notification(is_successful, tag_id, from_id, build_id, user_id, ignore_s
|
|||
return None
|
||||
|
||||
def build_notification(task_id, build_id):
|
||||
if context.opts.get('DisableNotifications'):
|
||||
return
|
||||
build = get_build(build_id)
|
||||
target = _get_build_target(task_id)
|
||||
|
||||
|
|
|
|||
|
|
@ -370,6 +370,7 @@ def load_config(req):
|
|||
['LoginCreatesUser', 'boolean', True],
|
||||
['KojiWebURL', 'string', 'http://localhost.localdomain/koji'],
|
||||
['EmailDomain', 'string', None],
|
||||
['DisableNotifications', 'boolean', False],
|
||||
|
||||
['Plugins', 'string', None],
|
||||
['PluginPath', 'string', '/usr/lib/koji-hub-plugins'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue