Sergey Grigoriev edited a comment on Bug JENKINS-16332
Unable to find source-code formatter for language: groovy. Available languages are: _javascript_, sql, xhtml, actionscript, none, html, xml, java
import java.util.logging.Logger
import java.util.logging.Level;
import hudson.model.*
import hudson.plugins.emailext.EmailRecipientUtils  
import hudson.tasks.MailAddressResolver  
import hudson.model.User  
  
def mailAddressResolverLogger = Logger.getLogger(MailAddressResolver.class.getName());
mailAddressResolverLogger.setLevel(Level.FINE)


def job = Hudson.instance.getJob("sms-dev-jdk7");  
def build = job.getBuild("46")

def userWithWrongEmail = User.get('John Doe')
println  userWithWrongEmail 
def userMailProp = userWithWrongEmail.properties.find { it.toString().contains('Mailer') }.value
userMailProp.address.getAddress()

evaluates to "John Doe" which indicates that the user doesn't have a correct email property

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.
 
 

Reply via email to