Job DSL Plugin extended email pre-send script does not have same default as UI

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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('me@halfempty.org', 'Oops', 'Something broken')
          }
      }
      

      Pre-send script (under Advanced settings) is left blank.

      After creating an "Editable email notification" from the UI the default is: $DEFAULT_PRESEND_SCRIPT

      This makes it very easy to create jobs which don't use the system specified script. I can add this using a configure block but it would be better if the Job DSL support had the same defaults as in the UI.

            Assignee:
            Daniel Spilker
            Reporter:
            Russell Gallop
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: