Skip to content

Commit

Permalink
Fix JENKINS-16281
Browse files Browse the repository at this point in the history
  • Loading branch information
slide committed Jan 8, 2013
1 parent 7bdb213 commit d9221ac
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -454,7 +454,9 @@ private MimeMessage createMail(EmailType type, AbstractBuild<?, ?> build, BuildL
setSubject(type, build, msg, listener, charset);

Multipart multipart = new MimeMultipart();
MimeBodyPart msgBody = getContent(type, build, msg, listener, charset);

multipart.addBodyPart(getContent(type, build, msg, listener, charset));

AttachmentUtils attachments = new AttachmentUtils(attachmentsPattern);
attachments.attach(multipart, this, build, listener);

Expand All @@ -469,7 +471,6 @@ private MimeMessage createMail(EmailType type, AbstractBuild<?, ?> build, BuildL
AttachmentUtils.attachBuildLog(multipart, build, listener);
}

multipart.addBodyPart(msgBody);
msg.setContent(multipart);

EnvVars env = null;
Expand Down

0 comments on commit d9221ac

Please sign in to comment.