Skip to content
This repository has been archived by the owner on Aug 10, 2020. It is now read-only.

Latest commit

 

History

History
26 lines (20 loc) · 810 Bytes

File metadata and controls

26 lines (20 loc) · 810 Bytes

mailer plugin

Mailer plugin configuration belongs under unclassified root element

sample configuration

jenkins: 
  [...]
unclassified:  
  mailer:
    adminAddress: admin@acme.org
    replyToAddress: do-not-reply@acme.org
    smtpHost: smtp.acme.org
    smtpPort: 4441

implementation note

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