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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -