Skip to content

Commit

Permalink
[JENKINS-26411] Bring slave log link back
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergondza committed Jan 15, 2015
1 parent 788d6ff commit b0351d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/main/java/hudson/model/AbstractBuild.java
Expand Up @@ -760,8 +760,10 @@ protected final boolean perform(BuildStep bs, BuildListener listener) throws Int
canContinue = mon.perform(bs, AbstractBuild.this, launcher, listener);
} catch (RequestAbortedException ex) {
// Channel is closed, do not continue
listener.error("Slave went offline during the build.");
final OfflineCause offlineCause = getCurrentNode().toComputer().getOfflineCause();
final Node node = getCurrentNode();
listener.hyperlink("/" + node.toComputer().getUrl() + "log", "Slave went offline during the build");
listener.getLogger().println();
final OfflineCause offlineCause = node.toComputer().getOfflineCause();
if (offlineCause != null) {
listener.error(offlineCause.toString());
}
Expand Down

0 comments on commit b0351d2

Please sign in to comment.