How to set programmatically recipients of Jenkins Email-ext plugin? -
i'm trying set recipients of email-ext
(aka editable email notficiation
) owners of failed tests. since owners can't calculated until after build fails, inject environment variables
plugin can't used.
how can done?
in advanced...
section create following pre-send script
:
import javax.mail.message import javax.mail.internet.internetaddress msg.addrecipient(message.recipienttype.to, new internetaddress('recipient@example.com'))
you'll need set project recipient list
(maybe dummy value) since if it's empty, plugin decides there's nothing do.
the script runs on master you'll need ssh
onto slave master if need process workspace.
Comments
Post a Comment