Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[FIXED JENKINS-18954] Show plug-in result in console log.
  • Loading branch information
uhafner committed Aug 7, 2013
1 parent 8f00f25 commit 57f114308ad6305985b595929d6634bae244b781
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/main/java/hudson/plugins/analysis/core/BuildResult.java
@@ -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
@@ -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();
}

0 comments on commit 57f1143

Please sign in to comment.