> On 29.11.2016, at 14:54, Jonathan Hodgson <[email protected]> wrote:
> 
> When a build happens after a push to the repository, I would like to email 
> the person who did the push (or the last commit, which usually amounts to the 
> same thing) with the result.
> 
> Is there a way to get the user's name and email?

Email-ext plugin has an emailextrecipients pipeline statement that lets you 
send an email to the 'culprits':

https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin#Email-extplugin-PipelineExamples

---

Alternatively, adapt this script to extract the Git committer email address:

https://github.com/jenkinsci/pipeline-examples/blob/master/pipeline-examples/gitcommit/gitcommit.groovy


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/F8788B75-4E65-475D-ADD4-AB0BC1C3BEF6%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to