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

Multiple (User Defined) Global Templates

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have a lot of jobs (100+) that were created with either the wrong e-mail trigger setup or none at all. These jobs tend to fall into a few categories like.

      Mail on Fail or Fix to Group A
      Mail on Fail or Fix to Group B
      Mail on Success to Group A
      Mail on Unstable to Group C
      Mail on Any

      Right now I have to go into every job and "fix" the e-mail triggers and assignee the appropriate group of users. This requires a lot of configuration because I have to manually add the "editable e-mail notification" > "Advanced Settings" > "Add Trigger" > "Fixed/Fail/Success/etc..." > edit "jelly/groovy templates..." for each job.

      It would be nice if there was a global configuration template page where the admin can define multiple custom global e-mail templates. These templates would then be selectable from any job using a simple drop down list within the editable e-mail notification of the job. What was a complex multiple step configuration prone to user editing errors, becomes a simple drop-down list.

      Doing it this way also make sense in the long run because if someone wants to update the e-mail, different reporting style, additional users for a group, change the formatting of a trigger e-mail. It only needs to be updated in global template once, not for every job.

      As an enhance function the list could be combined into more complex e-mail triggers. Such as
      Mail on Fail or Fix Group A & Mail on Unstable to Group C.

        Attachments

          Activity

          Hide
          mkruer Matthew Kruer added a comment -

          Testing it out now, found one minor issue https://issues.jenkins-ci.org/browse/JENKINS-22610
          I am temped to file another bug on the name of the plugin (email-ext-template or emailext-template or email-ext-template-plugin? seems to be liested three diffrent ways. Going forward I will be reporting bug under email-ext-template. Good work, this should make my life and anyone elases that had to do mass e-mails much easier going forward.

          Show
          mkruer Matthew Kruer added a comment - Testing it out now, found one minor issue https://issues.jenkins-ci.org/browse/JENKINS-22610 I am temped to file another bug on the name of the plugin (email-ext-template or emailext-template or email-ext-template-plugin? seems to be liested three diffrent ways. Going forward I will be reporting bug under email-ext-template. Good work, this should make my life and anyone elases that had to do mass e-mails much easier going forward.
          Hide
          slide_o_mix Alex Earl added a comment -

          Hmmm, where are the different ways it is reported? Please do file an issue.

          Show
          slide_o_mix Alex Earl added a comment - Hmmm, where are the different ways it is reported? Please do file an issue.
          Hide
          alex_ouzounis Alex Ouzounis added a comment -

          This is a really exciting proposition, I will try and have a look at the plugin and give you some feedback at some point.

          Show
          alex_ouzounis Alex Ouzounis added a comment - This is a really exciting proposition, I will try and have a look at the plugin and give you some feedback at some point.
          Hide
          slide_o_mix Alex Earl added a comment -

          Implemented and released new plugin for email templates.

          Show
          slide_o_mix Alex Earl added a comment - Implemented and released new plugin for email templates.
          Hide
          mkruer Matthew Kruer added a comment -

          Can you post the link for the install, I cant seem to find it http://updates.jenkins-ci.org/download/plugins/emailext-template/ is nolonger valid.
          Thanks

          Show
          mkruer Matthew Kruer added a comment - Can you post the link for the install, I cant seem to find it http://updates.jenkins-ci.org/download/plugins/emailext-template/ is nolonger valid. Thanks

            People

            • Assignee:
              slide_o_mix Alex Earl
              Reporter:
              mkruer Matthew Kruer
            • Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: