-
Type:
New Feature
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: email-ext-plugin
-
Labels:None
-
Similar Issues:
It would be great if this plugin could add support for the Claim Plugin (https://wiki.jenkins-ci.org/display/JENKINS/Claim+plugin, 1800 installations).
I imagine two additional features shown to the user in the Project configuration, if the Claim Plugin is installed:
- A "recipient group" called "Claimer" or something so that we can select when this person gets an email.
- One or more triggers related to a failed build which is already claimed. Maybe it could be a checkbox to the existing triggers ("...and is already claimed")
The end result would be that the user can configure that for example only the owners and the claimer (i.e. not the other culprits) will be emailed when a build with a sticky Claim fails again.
- duplicates
-
JENKINS-11638 When claimed, stop sending e-mails to individuals who broke the build
-
- Open
-
- is related to
-
JENKINS-12421 Add pre-send step to email-ext that can modify the mail message object
-
- Resolved
-
-
JENKINS-8202 Smarter broken build email notification
-
- Resolved
-
When using a script in the recipient list, your last line of the script must be a string with comma separated addresses.
When trying to do content (body) you want to create a template, not a script.
${SCRIPT, template="output-claim-info.template"}
Did you try this?
import hudson.tasks.Mailer.UserProperty address = user.getProperty(hudson.tasks.Mailer.UserProperty.class).address
You can definitely provide default recipients, just do something like this:
Project Recipient List: someone@somewhere.com, ${SCRIPT, script="get-claim-recipient.groovy"}