Mailer plugin configuration belongs under unclassified
root element
jenkins:
[...]
unclassified:
mailer:
adminAddress: [email protected]
replyToAddress: [email protected]
smtpHost: smtp.acme.org
smtpPort: 4441
hudson.task.Mailer.Descriptor
do expose global SMTP configuration parameters.
It is identified as yaml root element mailer
as this descriptor has a global.jelly
UI view, so configuration-as-code
assumes it make sense to expose it as a root element extension.
Descriptor do define setters so we can inject configuration, but for SMTP authentication parameters. See jenkinsci#2. See jenkinsci/mailer-plugin#39