/** * Method for remove matrix run actions. * * @param build the MatrixBuild. */ public void removeRunActions(MatrixBuild build) { List<MatrixRun> runs = build.getRuns(); for (MatrixRun run : runs) { if (run.getNumber() == build.getNumber()) { FailureCauseBuildAction fcba = run.getAction(FailureCauseBuildAction.class); if (fcba != null) { run.getActions().remove(fcba); } FailureCauseMatrixBuildAction fcmba = run.getAction(FailureCauseMatrixBuildAction.class); if (fcmba != null) { run.getActions().remove(fcmba); } } } }
@Override public boolean endRun(final MatrixRun run) { aggregationTableLock.lock(); try { names.add(run.getParent().getName()); List<ResultAction> actions = run.getActions(ResultAction.class); if (results.isEmpty()) { initializeMap(actions); } else { updateMap(actions); } run.getWorkspace(); } finally { aggregationTableLock.unlock(); } return true; }
@Override public boolean endRun(final MatrixRun run) throws InterruptedException, IOException { List<WarningsResultAction> actions = run.getActions(WarningsResultAction.class); if (!actions.isEmpty()) { for (WarningsResultAction action : actions) { if (!totalsPerParser.containsKey(action.getParser())) { WarningsResult result = action.getResult(); ParserResult aggregation = new ParserResult(); aggregation.addAnnotations(result.getAnnotations()); aggregation.addModules(result.getModules()); totalsPerParser.put(action.getParser(), aggregation); } } } return true; }
@Override public boolean endRun(final MatrixRun run) throws InterruptedException, IOException { List<WarningsResultAction> actions = run.getActions(WarningsResultAction.class); if (!actions.isEmpty()) { for (WarningsResultAction action : actions) { initializeParser(action.getParser()); ParserResult aggregation = totalsPerParser.get(action.getParser()); String configurationName = run.getParent().getName(); WarningsResult result = action.getResult(); addAllWarnings(aggregation, result, configurationName); aggregation.addModules(appendConfigurationNameToModule(result, configurationName)); } } return true; }