-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
We enabled your plugin to notify an email account when the slaves go offline. When I restart the master because we installed a new plugin, we get spammed with slave node notification emails.
I would like the plugin to be able to ignore when a master server gets restarted.
[JENKINS-24847] Don't notify when master is rebooted
Workflow | Original: JNJira [ 158078 ] | New: JNJira + In-Review [ 179723 ] |
Assignee | Original: Oliver Gondža [ olivergondza ] |
I have been looking into this as we also get spammed each time we restart Jenkins.
During a Jenkins restart there is one email sent for the shutdown of the slave at the restart, and then another email when the slave is launched again when Jenkins has started.
I have managed to stop the mails sent when Jenkins is terminating (see this commit) but not when Jenkins is starting again. One idea I had was to check the init level, and if it's not COMPLETED no emails should be sent. The starting of the slaves however happen in a later step, so the init level will already be COMPLETE.
I have run out of ideas so any suggestions are welcome...