Support First Unstable and Fixed Unhealthy trigger type
Support for these triggers was added in email-ext v2.37 and v2.32 respectively. Change-Id: Ib1353611bb77dc5e1789df0338cb434b7967db5d Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
This commit is contained in:
parent
dd9c0b675a
commit
9eb4431978
|
@ -1983,6 +1983,8 @@ def email_ext(registry, xml_parent, data):
|
|||
:arg bool unstable: Send an email for an unstable result (default false)
|
||||
:arg bool first-failure: Send an email for just the first failure
|
||||
(default false)
|
||||
:arg bool first-unstable: Send an email for just the first unstable build
|
||||
(default false)
|
||||
:arg bool not-built: Send an email if not built (default false)
|
||||
:arg bool aborted: Send an email if the build is aborted (default false)
|
||||
:arg bool regression: Send an email if there is a regression
|
||||
|
@ -1995,6 +1997,9 @@ def email_ext(registry, xml_parent, data):
|
|||
(default false)
|
||||
:arg bool success: Send an email for a successful build (default false)
|
||||
:arg bool fixed: Send an email if the build is fixed (default false)
|
||||
:arg bool fixed-unhealthy: Send an email if the build status
|
||||
changes from "Failure" or "Unstable" to "Success". Intermediate
|
||||
"Aborted" builds are ignored. (default false)
|
||||
:arg bool still-unstable: Send an email if the build is still unstable
|
||||
(default false)
|
||||
:arg bool pre-build: Send an email before the build (default false)
|
||||
|
@ -2038,6 +2043,8 @@ def email_ext(registry, xml_parent, data):
|
|||
base_email_ext(registry, ctrigger, data, 'UnstableTrigger')
|
||||
if data.get('first-failure', False):
|
||||
base_email_ext(registry, ctrigger, data, 'FirstFailureTrigger')
|
||||
if data.get('first-unstable', False):
|
||||
base_email_ext(registry, ctrigger, data, 'FirstUnstableTrigger')
|
||||
if data.get('not-built', False):
|
||||
base_email_ext(registry, ctrigger, data, 'NotBuiltTrigger')
|
||||
if data.get('aborted', False):
|
||||
|
@ -2056,6 +2063,8 @@ def email_ext(registry, xml_parent, data):
|
|||
base_email_ext(registry, ctrigger, data, 'SuccessTrigger')
|
||||
if data.get('fixed', False):
|
||||
base_email_ext(registry, ctrigger, data, 'FixedTrigger')
|
||||
if data.get('fixed-unhealthy', False):
|
||||
base_email_ext(registry, ctrigger, data, 'FixedUnhealthyTrigger')
|
||||
if data.get('still-unstable', False):
|
||||
base_email_ext(registry, ctrigger, data, 'StillUnstableTrigger')
|
||||
if data.get('pre-build', False):
|
||||
|
|
|
@ -37,6 +37,17 @@
|
|||
<sendToRecipientList>true</sendToRecipientList>
|
||||
</email>
|
||||
</hudson.plugins.emailext.plugins.trigger.FirstFailureTrigger>
|
||||
<hudson.plugins.emailext.plugins.trigger.FirstUnstableTrigger>
|
||||
<email>
|
||||
<recipientList/>
|
||||
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
|
||||
<body>$PROJECT_DEFAULT_CONTENT</body>
|
||||
<sendToDevelopers>true</sendToDevelopers>
|
||||
<sendToRequester>true</sendToRequester>
|
||||
<includeCulprits>true</includeCulprits>
|
||||
<sendToRecipientList>true</sendToRecipientList>
|
||||
</email>
|
||||
</hudson.plugins.emailext.plugins.trigger.FirstUnstableTrigger>
|
||||
<hudson.plugins.emailext.plugins.trigger.NotBuiltTrigger>
|
||||
<email>
|
||||
<recipientList/>
|
||||
|
@ -136,6 +147,17 @@
|
|||
<sendToRecipientList>true</sendToRecipientList>
|
||||
</email>
|
||||
</hudson.plugins.emailext.plugins.trigger.FixedTrigger>
|
||||
<hudson.plugins.emailext.plugins.trigger.FixedUnhealthyTrigger>
|
||||
<email>
|
||||
<recipientList/>
|
||||
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
|
||||
<body>$PROJECT_DEFAULT_CONTENT</body>
|
||||
<sendToDevelopers>true</sendToDevelopers>
|
||||
<sendToRequester>true</sendToRequester>
|
||||
<includeCulprits>true</includeCulprits>
|
||||
<sendToRecipientList>true</sendToRecipientList>
|
||||
</email>
|
||||
</hudson.plugins.emailext.plugins.trigger.FixedUnhealthyTrigger>
|
||||
<hudson.plugins.emailext.plugins.trigger.StillUnstableTrigger>
|
||||
<email>
|
||||
<recipientList/>
|
||||
|
|
|
@ -11,6 +11,7 @@ publishers:
|
|||
always: true
|
||||
unstable: true
|
||||
first-failure: true
|
||||
first-unstable: true
|
||||
not-built: true
|
||||
aborted: true
|
||||
regression: true
|
||||
|
@ -20,6 +21,7 @@ publishers:
|
|||
still-failing: true
|
||||
success: true
|
||||
fixed: true
|
||||
fixed-unhealthy: true
|
||||
still-unstable: true
|
||||
pre-build: true
|
||||
matrix-trigger: only-configurations
|
||||
|
|
Loading…
Reference in New Issue