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>
This commit is contained in:
parent
c6de59571a
commit
457b79fcfe
@ -1840,6 +1840,7 @@ def email_ext(parser, xml_parent, data):
|
||||
like ${BUILD_NUMBER}, but the real magic is using groovy or
|
||||
javascript to hook into the Jenkins API itself
|
||||
:arg bool attach-build-log: Include build log in the email (default false)
|
||||
:arg bool compress-log: Compress build log in the email (default false)
|
||||
:arg str attachments: pattern of files to include as attachment (optional)
|
||||
:arg bool always: Send an email for every result (default false)
|
||||
:arg bool unstable: Send an email for an unstable result (default false)
|
||||
@ -1941,6 +1942,8 @@ def email_ext(parser, xml_parent, data):
|
||||
'presend-script', '')
|
||||
XML.SubElement(emailext, 'attachBuildLog').text = str(data.get(
|
||||
'attach-build-log', False)).lower()
|
||||
XML.SubElement(emailext, 'compressBuildLog').text = str(data.get(
|
||||
'compress-log', False)).lower()
|
||||
XML.SubElement(emailext, 'saveOutput').text = str(data.get(
|
||||
'save-output', False)).lower()
|
||||
XML.SubElement(emailext, 'disabled').text = str(data.get(
|
||||
|
@ -165,6 +165,7 @@
|
||||
<attachmentsPattern>*/foo*.log</attachmentsPattern>
|
||||
<presendScript>cancel=true</presendScript>
|
||||
<attachBuildLog>false</attachBuildLog>
|
||||
<compressBuildLog>false</compressBuildLog>
|
||||
<saveOutput>true</saveOutput>
|
||||
<disabled>false</disabled>
|
||||
<replyTo>foo@example.com</replyTo>
|
||||
|
@ -6,6 +6,7 @@ publishers:
|
||||
subject: Subject for Build ${BUILD_NUMBER}
|
||||
body: The build has finished
|
||||
attach-build-log: false
|
||||
compress-log: false
|
||||
attachments: "*/foo*.log"
|
||||
always: true
|
||||
unstable: true
|
||||
|
@ -22,6 +22,7 @@
|
||||
<attachmentsPattern>*/foo*.log</attachmentsPattern>
|
||||
<presendScript/>
|
||||
<attachBuildLog>true</attachBuildLog>
|
||||
<compressBuildLog>true</compressBuildLog>
|
||||
<saveOutput>false</saveOutput>
|
||||
<disabled>false</disabled>
|
||||
<replyTo>$DEFAULT_REPLYTO</replyTo>
|
||||
|
@ -4,5 +4,6 @@ publishers:
|
||||
subject: Subject for Build ${BUILD_NUMBER}
|
||||
body: The build has finished
|
||||
attach-build-log: true
|
||||
compress-log: true
|
||||
attachments: "*/foo*.log"
|
||||
matrix-trigger: only-configurations
|
||||
|
@ -33,6 +33,7 @@
|
||||
<attachmentsPattern/>
|
||||
<presendScript/>
|
||||
<attachBuildLog>false</attachBuildLog>
|
||||
<compressBuildLog>false</compressBuildLog>
|
||||
<saveOutput>false</saveOutput>
|
||||
<disabled>false</disabled>
|
||||
<replyTo>$DEFAULT_REPLYTO</replyTo>
|
||||
|
Loading…
Reference in New Issue
Block a user