add presend-script to email-ext
Change-Id: I388dd2f5ce8aa6ac323f73409dec1003a3f423cb
This commit is contained in:
parent
416ee7dcd3
commit
53022c70e7
@ -1376,6 +1376,8 @@ def email_ext(parser, xml_parent, data):
|
||||
: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)
|
||||
:arg str presend-script: A Groovy script executed prior sending the mail.
|
||||
(default '')
|
||||
:arg str matrix-trigger: If using matrix projects, when to trigger
|
||||
|
||||
:matrix-trigger values:
|
||||
@ -1446,7 +1448,8 @@ def email_ext(parser, xml_parent, data):
|
||||
'body', '$DEFAULT_CONTENT')
|
||||
XML.SubElement(emailext, 'attachmentsPattern').text = data.get(
|
||||
'attachments', '')
|
||||
XML.SubElement(emailext, 'presendScript').text = ''
|
||||
XML.SubElement(emailext, 'presendScript').text = data.get(
|
||||
'presend-script', '')
|
||||
XML.SubElement(emailext, 'attachBuildLog').text = \
|
||||
str(data.get('attach-build-log', False)).lower()
|
||||
XML.SubElement(emailext, 'replyTo').text = data.get('reply-to',
|
||||
|
@ -152,7 +152,7 @@
|
||||
<defaultSubject>Subject for Build ${BUILD_NUMBER}</defaultSubject>
|
||||
<defaultContent>The build has finished</defaultContent>
|
||||
<attachmentsPattern>*/foo*.log</attachmentsPattern>
|
||||
<presendScript/>
|
||||
<presendScript>cancel=true</presendScript>
|
||||
<attachBuildLog>false</attachBuildLog>
|
||||
<replyTo>foo@example.com</replyTo>
|
||||
<matrixTriggerMode>ONLY_CONFIGURATIONS</matrixTriggerMode>
|
||||
|
@ -21,6 +21,7 @@ publishers:
|
||||
still-unstable: true
|
||||
pre-build: true
|
||||
matrix-trigger: only-configurations
|
||||
presend-script: "cancel=true"
|
||||
send-to:
|
||||
- developers
|
||||
- requester
|
||||
|
Loading…
x
Reference in New Issue
Block a user