Commit Graph

16 Commits

Author SHA1 Message Date
Eren ATAS a24a547de0 Updated ext-email support
Added also a test case for version specific changes

Change-Id: I5213dccffc441037c63ee7c042aee4a8a84d9732
Signed-off-by: Eren ATAS <eatas.contractor@libertyglobal.com>
2020-09-02 15:37:16 +02:00
Christian Kanthak dc36dca479 Add "upstream-committers" to publisher "email-ext"
Add support for the recipient item "Upstream Committers" of the
"Send To" list of a trigger of the "Email Extension" (email-ext)
plugin.

Change-Id: Iaa77330bb1910881df154494b0472ce21ea28d99
Task: 39595
Story: 2007607
2020-05-04 17:42:14 +02:00
Jonathan Rajotte 9eb4431978 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>
2018-02-24 19:48:02 +00:00
Liu Changcheng c588b842e8 add post-send script option
We need post-send script option to configure presendScript in the
generated configure xml.
When setting post-send as below:
   postsend-script: $DEFAULT_POSTSEND_SCRIPT
We could see below informaton in the generated configure xml.
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.42">
 <postsendScript>$DEFAULT_POSTSEND_SCRIPT</postsendScript>
</hudson.plugins.emailext.ExtendedEmailPublisher>

Change-Id: Ic215b2f3a9b5e7361a2cc1772226382da341ecd1
Signed-off-by: Liu Changcheng <changcheng.liu@intel.com>
Signed-off-by: Jerry Liu <primerlink@gmail.com>
2016-08-19 08:27:31 +08:00
Liu Changcheng 457b79fcfe add compress-log option to compress log
<hudson.plugins.emailext.plugins.trigger.FailureTrigger>
 <email>
  <compressBuildLog>true</compressBuildLog>
 </email>
</hudson.plugins.emailext.plugins.trigger.FailureTrigger>

Change-Id: I3588ab1377737af94372818f43dfd6a83a0966cb
Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
Signed-off-by: Jerry Liu <primerlink@gmail.com>
2016-08-17 13:36:24 +08:00
Darragh Bailey e5738d0852 Allow whitespace to be significant
Remove the test options suppressing ignoring differences in whitespace
outputted in the XML to allow capturing of issues where the code
incorrectly adds or removes significant whitespace.

Add a helper function to deal with the edge case of parsing XML directly
that contains non significant whitespace to avoid accidentally adding
excess whitespace when minidom outputs the resulting document.

Change-Id: I9936042cd82c204ba2b3c19f575703e33564f7fd
2015-08-11 18:31:48 +01:00
Somay Jain ad76699f50 Support disable-publisher and both-html-text content-type in email-ext
Support new options, disable-publisher option that is intended to
disable the publisher without removing the settings for testing,
and the both-html-text content-type option for the email-ext
plugin.

Change-Id: I6dab8101f8859a98be0c4a5f8068661c7af66a6b
2015-07-29 00:41:26 +05:30
Jaime Flynn 5f8d13d1b6 adds safe-output to email-ext in publishers.py
adds support for Save to Workspace option for email-ext plugin

Change-Id: I9fa2ed87a6d715ec8f56def053f486e8bf628b13
2014-11-21 13:45:26 -06:00
Jenkins eef226d370 Merge "add presend-script to email-ext" 2014-06-23 18:47:16 +00:00
Jaroslav Henner 53022c70e7 add presend-script to email-ext
Change-Id: I388dd2f5ce8aa6ac323f73409dec1003a3f423cb
2014-06-19 11:06:39 +02:00
David Johansen d1aecb185d Adding second failure option to the email-ext module
Change-Id: I288289e8227c3408f40f0e8272573d20e022ae70
2014-06-11 11:42:25 -04:00
Antoine Musso 41fd045cb0 Added send-to options support to email-ext plugin
- added an ability to select the recipients from the predefined groups,
  such as 'Committers', 'Requester' and 'Culprits'
- added tests for the whole email-ext plugin

Change-Id: I3b03aa1f57f29352121b8501d1fa9fe77383f3b7
2014-04-06 16:51:42 +04:00
Randy Coulman abaa7fde6c Support the new Always trigger type.
Support for this trigger was added in email-ext v2.36.

See https://issues.jenkins-ci.org/browse/JENKINS-20013 for more
details.

Change-Id: Ibfb3ec96218fc7133439e17853638593fed41a44
2014-03-10 07:34:22 -07:00
Antoine Musso 7ca5b01e8c Content-Type can now be set for email-ext publisher
The email-ext publisher was always sending email using the default
content type which is server wide.  This tiny patch let us overwrite the
content-type on a job basis.

The YAML possible values are 'html' or 'text' to force the content-type
to one of the two modes.

Change-Id: Id66bc3369332c389dfb6318113392694a4f98aad
2014-03-04 10:50:26 +00:00
Antoine Musso 25ef78b1ab Add attachment pattern expression to email-ext.
Change-Id: I38f58a081bdd591bc13cfff177971f7ff036ad23
2014-03-02 10:13:27 +01:00
Antoine Musso d6fc79fb4c Test for email-ext publisher
Also add the test fixture as an example in the documentation.

Change-Id: Iff253e52f9aa900bb61c6f621844bab4d8e696f2
2014-03-02 09:08:58 +00:00