Skip to content

Commit

Permalink
Related to JENKINS-12205: don't report test failures of inactive Matr…
Browse files Browse the repository at this point in the history
…ix Configurations
  • Loading branch information
Willem Verstraeten committed May 12, 2016
1 parent 78fb82b commit 7effaed
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;
Expand All @@ -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) {
Expand Down

0 comments on commit 7effaed

Please sign in to comment.