private ShellCommands getRunCommands() { BuildConfiguration buildConfiguration = new BuildConfiguration( "groupon/DotCi", ImmutableMap.of("run", of("unit", "command", "integration", "integration")), "buildId", new ShellCommands(), "abc123", 8); return buildConfiguration.getCommands(Combination.fromString("script=unit")); }
@Override public ShellCommands toScript(Combination combination, BuildType buildType) { return "post_build".equals(combination.get("script")) ? super.toScript(combination, buildType) : null; }
@Override public AbstractBuild<?, ?> resolveChild(Child child) { MatrixBuild b = (MatrixBuild) owner; return b.getRun(Combination.fromString(child.name)); }