Skip to content

Commit

Permalink
src: java: add logger in scheduleConfigurationBuild for DefaultMatrix…
Browse files Browse the repository at this point in the history
…ExecutionStrategyImpl
  • Loading branch information
Mamh-Linux committed Jul 2, 2020
1 parent 017b506 commit 25315dd
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.HashSet;
import java.util.List;
import java.util.TreeSet;
import java.util.logging.Logger;
import javax.annotation.Nullable;
import org.kohsuke.stapler.DataBoundConstructor;

Expand All @@ -39,6 +40,8 @@
* @since 1.456
*/
public class DefaultMatrixExecutionStrategyImpl extends MatrixExecutionStrategy {
private static final Logger LOGGER = Logger.getLogger(DefaultMatrixExecutionStrategyImpl.class.getName());

private volatile boolean runSequentially;

/**
Expand Down Expand Up @@ -252,8 +255,12 @@ private void scheduleConfigurationBuild(MatrixBuildExecution exec, MatrixConfigu
MatrixBuild build = exec.getBuild();
exec.getListener().getLogger().println(Messages.MatrixBuild_Triggering(ModelHyperlinkNote.encodeTo(c)));

LOGGER.info(Messages.MatrixBuild_Triggering( c.getCombination().toString('/', '/') +
" with this MatrixExecutionStrategy: " +
String.format("%s, %s, %s, %s", runSequentially, touchStoneCombinationFilter, touchStoneResultCondition, sorter)));

// filter the parent actions for those that can be passed to the individual jobs.
List<Action> childActions = new ArrayList<Action>(build.getActions(MatrixChildAction.class));
List<Action> childActions = new ArrayList<>(build.getActions(MatrixChildAction.class));
childActions.addAll(build.getActions(ParametersAction.class)); // used to implement MatrixChildAction
c.scheduleBuild(childActions, new UpstreamCause((Run)build));
}
Expand Down

0 comments on commit 25315dd

Please sign in to comment.