In the Jenkins pipeline, I use emailext with emailextrecipients as follows:
emailext ( subject: email_subject, mimetype: 'text/html', to: emailextrecipients([[$class: 'CulpritsRecipientProvider'],[$class: 'RequesterRecipientProvider']]), body: email_body )
And I want to add a specific email address (for example, admin@myshop.com ) to the list generated by emailextrecipients . I want this recipient (me or the manager or administrator) to always receive email, but the recipient could be the culprit or the requester, and I do not want emailext to send two recipients to this recipient.
Is there a way to combine " admin@myshop.com " with emailextrecipients ?
source share