-
Bug
-
Resolution: Won't Fix
-
Minor
-
None
-
jenkins 2.73.1
job-dsl-plugin 1.64
email-ext 2.58
CONTRIBUTING.md (DSL Design) states that "Every option should have the same defaults as the UI". This is not the case for the extended email plugin.
When creating an extended email publisher with Job DSL:
job('example') {
publishers {
extendedEmail {
triggers{
failure{ }
success{ }
fixed{ }
}
}
}
}
The "Send to" multi-choice-dropdown-like field (under Advanced settings) is populated with [Recipient List] (as stated in the JobDSL API documentation), when the default UI actually has a different list for every possible trigger (in this example, [Developpers], [Developpers], and [Developpers, Recipient List])
This can be very easily overridden using a sendTo block but it would be better if the Job DSL support had the same defaults as in the UI.
Also important, but slightly unrelated, it is impossible to remove whatever was inserted by default, leaving the whole "Send To" block empty. Do you think I should open a separate bug for that support?
- is related to
-
JENKINS-49098 Job DSL Plugin extended email trigger send-to list cannot be emptied
- Closed