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

Commit

Permalink
[FIXED JENKINS-18954] Show plug-in result in console log.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Aug 7, 2013
1 parent 8f00f25 commit 57f1143
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/hudson/plugins/analysis/core/BuildResult.java
Expand Up @@ -1124,6 +1124,8 @@ else if (useDeltaValues) {
reason = messages.toString();

saveResult(buildResult);

logger.log(String.format("%s %s - %s", Messages.ResultAction_Status(), buildResult.color.getDescription(), getReason()));
}

// CHECKSTYLE:OFF
Expand Down Expand Up @@ -1362,15 +1364,15 @@ public String getDetails() {
printer.append(printer.item(createHighScoreMessage()));
}
else if (isSuccessfulTouched()) {
printer.append(printer.item(createPluginResulMessage()));
printer.append(printer.item(createPluginResultMessage()));
if (isSuccessful()) {
printer.append(printer.item(createSuccessfulHighScoreMessage()));
}
}
return printer.toString();
}

private String createPluginResulMessage() {
private String createPluginResultMessage() {
return Messages.ResultAction_Status() + getResultIcon() + " - " + getReason() + getReferenceBuildUrl();
}

Expand Down

0 comments on commit 57f1143

Please sign in to comment.