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

Job DSL Plugin extended email trigger send-to list does not have same default as UI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • job-dsl-plugin
    • 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?

            daspilker Daniel Spilker
            camusensei Namikaze Minato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: