if (env == null) {
return false;
}
MasterBuild master = (MasterBuild) build;
JellyContext context = new JellyContext();
context.setVariable("master", master);
String subject = compileJelly(context,
"result_email_subject.jelly");
context = new JellyContext();
context.setVariable("subject", subject);
context.setVariable("preamble", env.expand(preamble));
context.setVariable("master", master);
context.setVariable("links", links);
context.setVariable("rootURL", Hudson.getInstance().getRootUrl());
String body = compileJelly(context,
"result_email_body.jelly");
try {
sendMail(build, subject, body, listener);