|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

For Clarification
It is not a globally defined sets of triggers, its a globally defined template which can include a sets of triggers and setting currently in email-ext.
Globally means changing it in one location changes all locations like currently with the $DEFAULT_RECIPIENTS.
With the current $DEFAULT_RECIPIENTS set it to some e-mail when you change the e-mail, the $DEFAULT_RECIPIENTS value changes, However Jobs still says $DEFAULT_RECIPIENTS.
The difference would be instead of defining just the $DEFAULT_RECIPIENTS you would be creating a global template that includes user any user defined triggers, email location additional settings. So Global template is a user (admin) defined template that can be applied to any jobs that are using that template.
Going back to my example with a bit more detail on the triggers. I should defined these global templates
Mail on Fail or Fix to Group A
Failure-Trigger [email protected]
Fixed-Trigger [email protected]
Mail on Fail or Fix to Group B
Failure-Trigger [email protected]
Fixed-Trigger [email protected]
Mail on Success to Group A
Success-Trigger [email protected]
Mail on Unstable to Group C
Unstable-Trigger [email protected]
Mail on Any
All-Triggers $DEFAULT_RECIPIENTS
I have the current Jobs Example each using a template.
Job1
Mail on Fail or Fix to Group A
Job2
Mail on Fail or Fix to Group B
Job3
Mail on Any
Job4
Mail on Fail or Fix to Group A
At some point Job1 is now owned by GroupB. So instead of having change the individual triggers in the Job, i.e.
Failure-Trigger [email protected] to Failure-Trigger [email protected]
Fixed-Trigger [email protected] to Fixed-Trigger [email protected]
I should be able to use the user defined template and change
"Mail on Fail or Fix to Group A" to "Mail on Fail or Fix to Group B"
I don’t have to touch the triggers inside the job, just what user defined template the jobs should use from now on.
Additionally now that Jobs1 and Jobs2 are set to "Mail on Fail or Fix to Group B" Say I now want to include all unstable for those jobs.
Before I would have to go to each job and add the trigger.
Now you would just go to a configuration page for the Mail on Fail or Fix to Group B, and update the template with the new trigger included
Mail on Fail or Fix to Group B
Failure-Trigger [email protected]
Fixed-Trigger [email protected]
Unstable-Trigger [email protected]
This means now Job1 and Job2 would send off e-mails to groupB if Failure, Fixed or Unstable occurs. Changing it in one location and it updates all jobs using that template.
Also anything that changes a global setting should be controlled by the admin of the box.
Hope this clarifies things.