From bffb409b9ecd8dee8b68bd00b4abcc62195db185 Mon Sep 17 00:00:00 2001 From: James Nord Date: Wed, 28 Jan 2015 11:46:37 +0000 Subject: [PATCH] Add extra info if the slave can not restartc correctly. If the service can not reliably restart itself add link to the wiki with some information about how to fix it. --- .../java/jenkins/slaves/restarter/WinswSlaveRestarter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/jenkins/slaves/restarter/WinswSlaveRestarter.java b/core/src/main/java/jenkins/slaves/restarter/WinswSlaveRestarter.java index 35c606cdcd..f9bd660a21 100644 --- a/core/src/main/java/jenkins/slaves/restarter/WinswSlaveRestarter.java +++ b/core/src/main/java/jenkins/slaves/restarter/WinswSlaveRestarter.java @@ -51,7 +51,9 @@ public class WinswSlaveRestarter extends SlaveRestarter { // so it's possible that we end up in the situation where jenkins-slave.exe doesn't support // this command. If that is the case, there's nothing we can do about it. int r = exec("restart!"); - throw new IOException("Restart failure. '"+exe+" restart' completed with "+r+" but I'm still alive"); + throw new IOException("Restart failure. '"+exe+" restart' completed with "+r+" but I'm still alive! " + + "See https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds#Distributedbuilds-Windowsslaveserviceupgrades" + + " for a possible explanation and solution"); } private static final Logger LOGGER = Logger.getLogger(WinswSlaveRestarter.class.getName());