Skip to content
Permalink
Browse files
Merge pull request #41 from willemv/master
[FIXED JENKINS-34804] Don't report test failures of inactive Matrix Configurations
  • Loading branch information
evandy0 committed May 17, 2016
2 parents 3cb3cba + 7effaed commit e83aaf7fdce05efcc269a4d88365e991eddc5642
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/main/java/hudson/plugins/view/dashboard/test/TestUtil.java
@@ -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 e83aaf7

Please sign in to comment.