Issue Type: Bug Bug
Assignee: Alex Earl
Components: email-ext-plugin
Created: 29/Jan/15 1:40 PM
Description:

In project, when "Send separate e-mails to individuals who broke the build" is enabled and more than one recipient should receive a job status email, we get:

stacktrace
Sonar analysis completed: SUCCESS
ERROR: Unable to send to address: [email protected],[email protected]
javax.mail.internet.AddressException: Illegal address in string ``[email protected],[email protected]''
	at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:114)
	at hudson.tasks.Mailer.StringToAddress(Mailer.java:180)
	at jenkins.plugins.mailer.tasks.MimeMessageBuilder.toNormalizedAddress(MimeMessageBuilder.java:254)
	at jenkins.plugins.mailer.tasks.MimeMessageBuilder.addRecipients(MimeMessageBuilder.java:137)
	at jenkins.plugins.mailer.tasks.MimeMessageBuilder.addRecipients(MimeMessageBuilder.java:129)
	at hudson.tasks.MailSender.createEmptyMail(MailSender.java:380)
	at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:201)
	at hudson.tasks.MailSender.createMail(MailSender.java:194)
	at hudson.tasks.MailSender.run(MailSender.java:107)
	at hudson.tasks.Mailer.perform(Mailer.java:141)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
	at hudson.model.Build$BuildExecution.post2(Build.java:183)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
	at hudson.model.Run.execute(Run.java:1743)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:89)
	at hudson.model.Executor.run(Executor.java:240)
Sending e-mails to: [email protected]

This happens if you got a failed job and 2 or more developers committed to the project during the fail state. In this case, the build problem was fixed, so 2 developers need to get the email. Seems the formatting of the recipients is wrong.

I'm not sure if this problem was also in former versions of the plugin.

Environment: CentOS6.6, Jenkins ver. 1.598, email-ext plugin v. 2.39
Project: Jenkins
Priority: Minor Minor
Reporter: Robert Oschwald
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/d/optout.

Reply via email to