Skip to content
Permalink
Browse files

Fix JENKINS-26286

  • Loading branch information
Alex Earl
Alex Earl committed Jan 16, 2015
1 parent 8a47a78 commit 72fcd04ef301a8e45df268945ce48fa146aa56ca
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
@@ -18,6 +18,7 @@
import hudson.plugins.emailext.plugins.CssInliner;
import hudson.plugins.emailext.plugins.EmailTrigger;
import hudson.plugins.emailext.plugins.RecipientProvider;
import hudson.plugins.emailext.plugins.content.EmailExtScript;
import hudson.plugins.emailext.plugins.content.TriggerNameContent;
import hudson.plugins.emailext.watching.EmailExtWatchAction;
import hudson.plugins.emailext.watching.EmailExtWatchJobProperty;
@@ -444,6 +445,7 @@ private boolean executePresendScript(ExtendedEmailPublisherContext context, Mime
ClassLoader cl = Jenkins.getInstance().getPluginManager().uberClassLoader;
ScriptSandbox sandbox = null;
CompilerConfiguration cc = new CompilerConfiguration();
cc.setScriptBaseClass(EmailExtScript.class.getCanonicalName());
cc.addCompilationCustomizers(new ImportCustomizer().addStarImports(
"jenkins",
"jenkins.model",
@@ -460,6 +462,7 @@ private boolean executePresendScript(ExtendedEmailPublisherContext context, Mime
Binding binding = new Binding();
binding.setVariable("build", context.getBuild());
binding.setVariable("msg", msg);
binding.setVariable("listener", context.getListener());
binding.setVariable("logger", context.getListener().getLogger());
binding.setVariable("cancel", cancel);
binding.setVariable("trigger", context.getTrigger());

0 comments on commit 72fcd04

Please sign in to comment.
You can’t perform that action at this time.