Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[FIXED JENKINS-15324] Aggregate build results if a failed build is
Browse files Browse the repository at this point in the history
caused by a plugin threshold.
  • Loading branch information
uhafner committed Feb 14, 2013
1 parent 3b9fbe4 commit b506c41
Showing 1 changed file with 7 additions and 8 deletions.
Expand Up @@ -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);
Expand Down

0 comments on commit b506c41

Please sign in to comment.