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

allow for generic user message that would be added to templates

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • email-ext-plugin
    • None

      While the default templates provided by the emailext are very well designed and useful there is a genuine need for the pipeline user to be able to add extra information (message) to the default template without having to copy the template and modify it.

      If emailext would accept a generic message (which can be undefined), and include it in the emails sent it would allow users to re-use the existing templates without having to copy them.

          [JENKINS-46818] allow for generic user message that would be added to templates

          You can kinda already do this as the templates are just macros. You can't add info in the middle of them but you can add stuff before and after. But yes I can see a point to allowing you to add arbitrary content at specific locations. But possibly better to just split the templates up into section chunks so you can include what you want and interleave/change order as needed and have the current templates just include those pieces. If you feel like doing this I will accept a pull request.

          David van Laatum added a comment - You can kinda already do this as the templates are just macros. You can't add info in the middle of them but you can add stuff before and after. But yes I can see a point to allowing you to add arbitrary content at specific locations. But possibly better to just split the templates up into section chunks so you can include what you want and interleave/change order as needed and have the current templates just include those pieces. If you feel like doing this I will accept a pull request.

          Alex Earl added a comment -

          Users can provide their own templates for usage already.

          Alex Earl added a comment - Users can provide their own templates for usage already.

            slide_o_mix Alex Earl
            ssbarnea Sorin Sbarnea
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: