Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32131

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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • jenkins 1.625.1
      job-dsl-plugin 1.40
      email-ext 2.40.5

      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.

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

            daspilker Daniel Spilker
            rg Russell Gallop
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: