mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
adding error check.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21792 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
b3cd238ad3
commit
bf5529567a
1 file changed
+1
@@ -107,6 +107,7 @@ public class ManagedWindowsServiceLauncher extends ComputerLauncher {
|
||||
SWbemServices services = WMI.connect(session, computer.getName());
|
||||
|
||||
String path = computer.getNode().getRemoteFS();
|
||||
if (path.indexOf(':')==-1) throw new IOException("Remote file system root path of the slave needs to be absolute: "+path);
|
||||
SmbFile remoteRoot = new SmbFile("smb://" + computer.getName() + "/" + path.replace('\\', '/').replace(':', '$')+"/",createSmbAuth());
|
||||
|
||||
Win32Service slaveService = services.getService("hudsonslave");
|
||||
|
||||
Reference in new issue
Block a user