public Layouter<MatrixConfiguration> getLayouter() { return new Layouter<MatrixConfiguration>(getAxes()) { protected MatrixConfiguration getT(Combination c) { return getItem(c); } }; }
public Layouter<MatrixConfiguration> getLayouter() { return new Layouter<MatrixConfiguration>(getAxes()) { protected MatrixConfiguration getT(Combination c) { return getItem(c); } }; }
public Layouter<MatrixConfiguration> getLayouter() { return new Layouter<MatrixConfiguration>(getAxes()) { protected MatrixConfiguration getT(Combination c) { return getItem(c); } }; }
@Override public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException { super.onLoad(parent, name); AxisList axes = getAxes(); if (!CollectionUtils.isEmpty(axes)) { // perhaps the file was edited on disk and the sort order might have been broken Collections.sort(getAxes()); } rebuildConfigurations(); }
public Object readResolve() { // MatrixBuild.axes added in 1.285; default to parent axes for old data if (axes == null) { axes = getParent().getAxes(); } return this; }
public Object readResolve() { // MatrixBuild.axes added in 1.285; default to parent axes for old data if (axes == null) { axes = getParent().getAxes(); } return this; }
public Object readResolve() { // MatrixBuild.axes added in 1.285; default to parent axes for old data if (axes==null) axes = getParent().getAxes(); return this; }
@Override public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException { super.onLoad(parent, name); AxisList axes = getAxes(); if (!CollectionUtils.isEmpty(axes)) { // perhaps the file was edited on disk and the sort order might have been broken Collections.sort(getAxes()); } rebuildConfigurations(); }
public Object readResolve() { // MatrixBuild.axes added in 1.285; default to parent axes for old data if (axes == null) { axes = getParent().getAxes(); } return this; }
/** * Applies the filter to the specified combination in the context of {@code context}. */ public final boolean apply(MatrixBuildExecution context, Combination combination) { return apply(context.getProject().getAxes(), combination, getConfiguredBinding(context)); }
/** * Gets the {@link Label}s where the builds will be run. * @return never null */ public Set<Label> getLabels() { Set<Label> r = new HashSet<Label>(); for (Combination c : getAxes().subList(LabelAxis.class).list()) r.add(Hudson.getInstance().getLabel(Util.join(c.values(),"&&"))); return r; }
/** * Gets the {@link Label}s where the builds will be run. * @return never null */ public Set<Label> getLabels() { Set<Label> r = new HashSet<Label>(); for (Combination c : getAxes().subList(LabelAxis.class).list()) r.add(Hudson.getInstance().getLabel(Util.join(c.values(),"&&"))); return r; }
/** * Gets the {@link Label}s where the builds will be run. * * @return never null */ public Set<Label> getLabels() { Set<Label> r = new HashSet<Label>(); for (Combination c : getAxes().subList(LabelAxis.class).list()) { r.add(Hudson.getInstance().getLabel(Util.join(c.values(), "&&"))); } return r; }
/** * Gets the {@link Label}s where the builds will be run. * @return never null */ public Set<Label> getLabels() { Set<Label> r = new HashSet<Label>(); for (Combination c : getAxes().subList(LabelAxis.class).list()) r.add(Hudson.getInstance().getLabel(Util.join(c.values(),"&&"))); return r; }
public static boolean isfiltrated(final AbstractBuild build, String combinationFilter) { //Empty combination consider as filter all if (StringUtils.isEmpty(combinationFilter)) return true; if (build.getProject() instanceof MatrixConfiguration) { MatrixConfiguration matrixConf = ((MatrixConfiguration) build.getProject()); return !matrixConf.getCombination(). evalGroovyExpression(matrixConf.getParent().getAxes(), combinationFilter); } return false; }
public boolean doBuildConfiguration(MatrixBuild b, MatrixConfiguration c) { MatrixSubsetAction a = b.getAction(MatrixSubsetAction.class); if (a==null) return true; // run the filter and restrict the subset to run return c.getCombination().evalScriptExpression(b.getParent().getAxes(), a.getFilter()); }
@Override public Label getAssignedLabel() { // combine all the label axes by &&. String expr = Util.join(combination.values(getParent().getAxes().subList(LabelAxis.class)), "&&"); return Hudson.getInstance().getLabel(Util.fixEmpty(expr)); }
@Override public Label getAssignedLabel() { // combine all the label axes by &&. String expr = Util.join(combination.values(getParent().getAxes().subList(LabelAxis.class)), "&&"); return Hudson.getInstance().getLabel(Util.fixEmpty(expr)); }
@Override public Label getAssignedLabel() { // combine all the label axes by &&. String expr = Util.join(combination.values(getParent().getAxes().subList(LabelAxis.class)), "&&"); return Hudson.getInstance().getLabel(Util.fixEmpty(expr)); }
@Override public Label getAssignedLabel() { // combine all the label axes by &&. String expr = Util.join(combination.values(getParent().getAxes().subList(LabelAxis.class)), "&&"); return Hudson.getInstance().getLabel(Util.fixEmpty(expr)); }