Send multiple email messages using email-ext plugin in Jenkins - jenkins

I am using Jenkins email-ext plugin to send email messages. I would like to send 2 email messages - one with 1 attachment that is sent to 1 person and a second email with another attachment sent to another person.
Is that possible using this plugin? From what I have found in the documentation it seems that only one email can be sent.
Thanks in advance.

You could modify your process to use three Jenkins jobs; one for the build, and two for emailing.
Use the Jenkins Parameterized Trigger Plugin to have the build job start the email jobs when it's done. You can either pass in the location to the zip files or some other parameter to know what zip file to use in the email jobs. In "Projects to build" you put the name of your email job. You will add two triggers; one for each email job, passing in unique parameters to each.

If you setup multiple triggers, multiple emails will be sent out. You can have multiple triggers of the same type as well, so if you want to send out two emails for failure, just add the failure trigger twice and setup different recipient lists. Each trigger can generate a separate email.

Related

How to get name of the job owner in jenkins pipeline?

When someone creates a Test job, we should send email only to him, not for all. How can I get a job owner name?
We have teams and when we make a job, the results of it we send to them. But if the name of the job consists "TestJob" we should send only to the creator.
Check out the Build User Vars Plugin
It will give you the executing users name and email address.

Jenkins-Poll Mailbox Trigger

Can we add(restrict) emailids who can only send emails to trigger jenkins job using jenkins Poll Mailbox Trigger plugin.
As of now any body can send email who knows the subject and job gets triggered.
you can use job restriction plugin to restrict the jobs that who can trigger.
please see for yourself
Job restriction plugin

Updating user emails in Jenkins

We have a Jenkins setup in which jobs are pipelines that call the email-ext plugin to notify users.
After the jobs have been setup, all users have changed emails, going from user#company1.com to user#company2.com.
Jenkins still sends emails to the former adresses.
I can't find a way to update the email adresses. Is there a way to do this ?
Users are authenticated through the Active Directory plugin.
You just have to update to address while sending. Check this on how to do it. Since you might need to update the config on multiple jobs you might need to write a script to achieve that. This thread explains it

Jenkins: Daily email report about multiple jobs

Can Jenkins send a daily/weekly... email report about multiple jobs statuses? Basically a daily email containing:
There is no explicit plugin for that, but you can create a job and pull stats from other plugins like
https://wiki.jenkins-ci.org/display/JENKINS/Global+Build+Stats+Plugin
https://wiki.jenkins-ci.org/display/JENKINS/build-metrics-plugin

Mail Triggering In Jenkins

I want to setup a Jenkins in a such a way that it should trigger an email when test case fails. I have some 1000+ test cases, if anyone of the test case fails, it should trigger email.
Use customized robot listeners as part of the framework, so that they trigger an email everytime for failure

Resources