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

          Russell Gallop created issue -
          Daniel Spilker made changes -
          Link New: This issue is related to JENKINS-28986 [ JENKINS-28986 ]
          Daniel Spilker made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Daniel Spilker made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Daniel Spilker made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 167614 ] New: JNJira + In-Review [ 209551 ]

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

              Created:
              Updated:
              Resolved: