I have a Jenkins project consisting of 3 simple free-style jobs, each with their own build slave. Each job is tied to a separate platform: linux, mac, or windows. When a developer commits their code, Jenkins soon after polls the repo, builds the project on each of the build slaves, and each of those projects sends an email to the developer describing whether or not the build failed or succeeded. Problem: Three separate emails per scm change really spams developers' inboxes, especially those belonging to people who like to commit small changes frequently. They are therefore likely to ignore the emails entirely.
Question: Is there a way (via plug-in or project restructuring) to consolidate the three success/failure emails into one email? I have looked into the Email-ext plugin, the MultiJob plugin and the Build a multi-configuration project option and can't seem to find a way to change the project structure so that only one email is sent to a developer describing which jobs failed or succeeded. I suspect you have to combine the jobs into a single MultiJob project and check results from building on each platform before sending, but I don't know. There's a lot about Jenkins I haven't figured out yet.
Any advice you guys can give me would be greatly appreciated.
The "Editable Email Notification" publisher (from email-ext) has a setting to decide how it deals with matrix (multi-configration) projects.
You can configure the "Trigger for matrix projects" to "Trigger only the parent job", which should achieve what you want.
Likewise you can also configure it to "Trigger for each configuration" to get the result you have now, or "Trigger for parent and each configuration" for both.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With