From c7d396b720b2ff74f223bd1d8160b6b9d06124f6 Mon Sep 17 00:00:00 2001 From: S Gorobet Date: Thu, 27 Oct 2016 12:27:13 -0400 Subject: [PATCH] update documentation for addExtandedEmail --- docs/examples.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/examples.md b/docs/examples.md index 28a7143e..b25553fd 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -265,6 +265,16 @@ job('example'){ job('example'){ CommonUtils.addExtendedEmail(delegate, emails, triggers=['statusChanged']) } + +// Override default email pre-send script, by providing a groovy code +job('example'){ + CommonUtils.addExtendedEmail(delegate, emails, triggers, sendToDevs, senToReq, includeCulprits, sendToRecipient, "cancel = true") +} + +// Override default email pre-send script by providing path to the script file +job('example'){ + CommonUtils.addExtendedEmail(delegate, emails, triggers, sendToDevs, sendToReq, includeCulprits, sendToRecipient, "\${SCRIPT, template='path/to/script.groovy'}" +} ``` ### Inject global passwords