Index: MatrixConfiguration.java =================================================================== --- MatrixConfiguration.java (revision 16218) +++ MatrixConfiguration.java (working copy) @@ -47,8 +47,10 @@ import hudson.tasks.Publisher; import java.io.IOException; +import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Set; /** * One configuration of {@link MatrixProject}. @@ -197,9 +199,53 @@ return this; } + /** + * Finds labels that exist with nodes matching the axises in the combination. + * Labels must be in the format of "axis=value". For example, if your matrix + * build has an axis for compiler[gfortran,lahey] then the corresponding labels + * would be "compiler=gfortran" and "compiler=lahey". A label is only returned + * if it exists and has nodes. + * @param combination to find labels for. + * @return set of labels that match the combination, null if no labels match. + */ + private Set