Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[FIXED JENKINS-15324] Aggregate build results if a failed build is
caused by a plugin threshold.
  • Loading branch information
uhafner committed Feb 14, 2013
1 parent 3b9fbe4 commit b506c418b4b3579d7cb71f31498cdbc21bbfc618
Showing with 7 additions and 8 deletions.
  1. +7 −8 src/main/java/hudson/plugins/analysis/core/MavenResultAction.java
@@ -103,15 +103,14 @@ public String getSmallImageName() {
* Newly completed build.
*/
public void update(final Map<MavenModule, List<MavenBuild>> moduleBuilds, final MavenBuild newBuild) {
if (newBuild.getResult().isBetterThan(Result.FAILURE)) {
MavenResultAction<T> additionalAction = newBuild.getAction(getIndividualActionType());
MavenModule project = newBuild.getProject();
if (additionalAction != null && !getModules().contains(project)) {
getModules().add(project);

T existingResult = delegate.getResult();
T additionalResult = additionalAction.getResult();
MavenResultAction<T> additionalAction = newBuild.getAction(getIndividualActionType());
MavenModule project = newBuild.getProject();
if (additionalAction != null && !getModules().contains(project)) {
T existingResult = delegate.getResult();
T additionalResult = additionalAction.getResult();

if (newBuild.getResult().isBetterThan(Result.FAILURE) || additionalResult.getPluginResult().isWorseOrEqualTo(Result.FAILURE)) {
getModules().add(project);
setResult(createAggregatedResult(existingResult, additionalResult));

copySourceFilesToModuleBuildFolder(newBuild);

0 comments on commit b506c41

Please sign in to comment.