Skip to content
Permalink
Browse files
Related to JENKINS-12205: don't report test failures of inactive Matr…
…ix Configurations
  • Loading branch information
Willem Verstraeten committed May 12, 2016
1 parent 78fb82b commit 7effaedfb180af5a543895ad3edef7758fb856ff
Showing 1 changed file with 4 additions and 4 deletions.
@@ -1,5 +1,6 @@
package hudson.plugins.view.dashboard.test;

import hudson.matrix.MatrixConfiguration;
import hudson.matrix.MatrixProject;
import hudson.maven.reporters.SurefireAggregatedReport;
import hudson.model.Job;
@@ -26,10 +27,9 @@ public static TestResultSummary getTestResultSummary(Collection<TopLevelItem> jo
if (item instanceof MatrixProject) {
MatrixProject mp = (MatrixProject) item;

for (Job job : mp.getAllJobs()) {
if (job != mp) { //getAllJobs includes the parent job too, so skip that
summarizeJob(job, summary);
}
for (MatrixConfiguration configuration : mp.getActiveConfigurations()) {
MatrixConfiguration job = mp.getItem(configuration.getCombination());
summarizeJob(job, summary);
}
}
else if (item instanceof Job) {

0 comments on commit 7effaed

Please sign in to comment.