Skip to content
Permalink
Browse files

JENKINS-38709 - Merge previous console log filter instead of overridi…

…ng it.
  • Loading branch information
alvarolobato committed Oct 17, 2016
1 parent c2d1365 commit af602060a639d9bc2817cda98280feb2f549fc9a
@@ -51,6 +51,7 @@
import org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl;
import org.jenkinsci.plugins.workflow.steps.BodyExecution;
import org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback;
import org.jenkinsci.plugins.workflow.steps.BodyInvoker;
import org.jenkinsci.plugins.workflow.steps.EnvironmentExpander;
import org.jenkinsci.plugins.workflow.steps.StepContext;
import org.jenkinsci.plugins.workflow.steps.StepContextParameter;
@@ -133,7 +134,7 @@ public boolean start() throws Exception {
setupJDK();
setupMaven();

MavenConsoleFilter consFilter = new MavenConsoleFilter(getComputer().getDefaultCharset().name());
ConsoleLogFilter consFilter = BodyInvoker.mergeConsoleLogFilters(getContext().get(ConsoleLogFilter.class), new MavenConsoleFilter(getComputer().getDefaultCharset().name()));
EnvironmentExpander envEx = EnvironmentExpander.merge(getContext().get(EnvironmentExpander.class), new ExpanderImpl(envOverride));

body = getContext().newBodyInvoker().withContexts(envEx, consFilter).withCallback(new Callback(tempBinDir)).start();

0 comments on commit af60206

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