Merge "Reporters: fix typo and support 'perModuleEmail'"
This commit is contained in:
commit
181248a4b6
@ -48,6 +48,8 @@ def email(registry, xml_parent, data):
|
|||||||
unstable build (default true)
|
unstable build (default true)
|
||||||
:arg bool send-to-individuals: Send an email to the individual
|
:arg bool send-to-individuals: Send an email to the individual
|
||||||
who broke the build (default false)
|
who broke the build (default false)
|
||||||
|
:arg bool notify-for-each-module: Send an email for each module
|
||||||
|
(e.g. failed, unstable). (default true)
|
||||||
|
|
||||||
Example::
|
Example::
|
||||||
|
|
||||||
@ -57,7 +59,7 @@ def email(registry, xml_parent, data):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
mailer = XML.SubElement(xml_parent,
|
mailer = XML.SubElement(xml_parent,
|
||||||
'hudson.maven.reporters.Mailer')
|
'hudson.maven.reporters.MavenMailer')
|
||||||
XML.SubElement(mailer, 'recipients').text = data['recipients']
|
XML.SubElement(mailer, 'recipients').text = data['recipients']
|
||||||
|
|
||||||
# Note the logic reversal (included here to match the GUI
|
# Note the logic reversal (included here to match the GUI
|
||||||
@ -67,8 +69,8 @@ def email(registry, xml_parent, data):
|
|||||||
XML.SubElement(mailer, 'dontNotifyEveryUnstableBuild').text = 'true'
|
XML.SubElement(mailer, 'dontNotifyEveryUnstableBuild').text = 'true'
|
||||||
XML.SubElement(mailer, 'sendToIndividuals').text = str(
|
XML.SubElement(mailer, 'sendToIndividuals').text = str(
|
||||||
data.get('send-to-individuals', False)).lower()
|
data.get('send-to-individuals', False)).lower()
|
||||||
# TODO: figure out what this is:
|
XML.SubElement(mailer, 'perModuleEmail').text = str(
|
||||||
XML.SubElement(mailer, 'perModuleEmail').text = 'true'
|
data.get('notify-for-every-module', True)).lower()
|
||||||
|
|
||||||
|
|
||||||
def findbugs(registry, xml_parent, data):
|
def findbugs(registry, xml_parent, data):
|
||||||
|
Loading…
Reference in New Issue
Block a user