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

The email-ext-plugin Pipeline integration is not very ergonomic

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • email-ext-plugin
    • None

      People working with Jenkins pipelines can have very varied backgrounds. They can not be assumed to be developers, they might barely know about Groovy or object oriented programming.

      To tame this complexity the Declarative Pipelines were introduced, which are somewhat simpler than the regular Scripted Pipelines.

      However some parts of the configuration are still quite hard to follow. One example is the email-ext-plugin configuration.

      I'm not entirely sure how this could be improved, but I believe a first step would be to get rid of these kinds of $class configuration entries:

      emailext body: 'A Test EMail', recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']], subject: 'Test', to: 'abc'
      

      Quoting abayer:

      Syntax for the emailext step can be improved by adding @Symbol annotations to the various provider classes's Descriptor classes, fyi.
      

       

            davidvanlaatum David van Laatum
            ccaraivan Costin Caraivan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: