title: How to get e-mail address of current Jenkins user to use in groovy script
body: <p>I've created a groovy script for the new Jenkins Workflow Plugin, <a href="https://github.com/jenkinsci/workflow-plugin" rel="noreferrer">https://github.com/jenkinsci/workflow-plugin</a>. I want it to send a mail to the user who started the job when it needs input for the next step. I've tried to search the API but I can't find anything about getting the users email address.</p>
  
  <p>I would think of something like this. </p>
  
  <pre><code>import hudson.model.User
  def user = User.current()
  def mailAddress = user.getMailAddress()
  </code></pre>
  
  <p>Is there a way to get the current Jenkins user' address in groovy?</p>