Here's another function, with multiple "to"

def sendApprovalTransitionEmail(deploymentEnv) {
    emailext body: "<strong><font color=\"#3090C7\">This build is now 
paused and awaiting transition by QA.</font></strong><br /><br /> Click 
here ${env.BUILD_URL} to approve this builds deployment to $deploymentEnv.",
    subject: "Build is paused - awaiting QA approval ($deploymentEnv)",
    to: "$watchers,jenkins...@company.com" 
}


On Friday, February 15, 2019 at 2:53:41 PM UTC-5, Zach LaCelle wrote:
>
> For my "build failed" emails, I'd like to send an email from my Jenkins 
> Declarative Pipeline to the developers group but also to a fixed list of 
> recipients. Under the Pipeline documentation (
> https://jenkins.io/doc/pipeline/steps/email-ext/), I see a class for 
> "recipients", which states that it includes "recipients defined in the 
> "Project Recipient List.""
>
> My question is: how do I add a list of emails to the "Project Recipient 
> List"? Where is this list defined for Declarative pipelines? If I can add 
> to this list, then I think I can add something like: recipientProviders: 
> [[$class: 'DevelopersRecipientProvider'], [$class: 
> 'RecipientsRecipientProvider']]
>
> Or, if I can't do this, then I could also add a "to:" at the end of the 
> emailext declaration. How do I add multiple users to this entry? Are they 
> comma-separated, or semi-colon separated? Will they automatically have the 
> default domain added?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2e62e890-cb57-496c-9372-607b35c9bb57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to