Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins double email

Each time a jenkins build fails I get two emails instead of one.

They have a slightly different subject text:

email 1:
"Jenkins build is still unstable: MyAppName Nightly #47"
email 2:
"Jenkins build is still unstable: MyAppName Nightly » myAppName #47"

Any ideas?

edit: it is not a multi-configuration-project, it is a maven 2/3 project

like image 502
nemoo Avatar asked Jun 10 '11 12:06

nemoo


People also ask

What is extended email notification in Jenkins?

In Extended Email Notifications you can set triggers (e.g. build is unstable or before build), specify email subject, content and recipients.

How do I send an editable email notification in Jenkins?

Click the 'Advance Settings…' button in the 'Editable Email Notification' box. Click the 'Add Trigger' drop-down and select the 'Always' option and Click the 'Save' button. Go to Email-Notification Jenkins job and click on Build now. Check the Recipient's mail box.


2 Answers

This is normal behaviour, because in a Maven job type, you always have a sub job per Maven module (automatically created by Jenkins). You can see the jobs, if you click on the link "Modules".

If you only want one email, you can use the Email Ext plugin.

like image 172
dunni Avatar answered Sep 21 '22 16:09

dunni


So my configuration has an advanced section under the maven build and all I had to do was make sure the option: "Send e-mail for each failed module" was un-checked. And continue to use the default email notification.

like image 25
lukeis Avatar answered Sep 23 '22 16:09

lukeis