提交 eb0375d8 编写于 作者: K kohsuke

modified to allow a configuration to be saved even if some slaves are down.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1318 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d44598f8
......@@ -68,8 +68,11 @@ public final class Slave implements Node {
if (name.equals(""))
throw new FormException("Invalid slave configuration. Name is empty", null);
if (!localFS.exists())
throw new FormException("Invalid slave configuration for " + name + ". No such directory exists: " + localFS, null);
// this prevents the config from being saved when slaves are offline.
// on a large deployment with a lot of slaves, some slaves are bound to be offline,
// so this check is harmful.
//if (!localFS.exists())
// throw new FormException("Invalid slave configuration for " + name + ". No such directory exists: " + localFS, null);
if (remoteFS.equals(""))
throw new FormException("Invalid slave configuration for " + name + ". No remote directory given", null);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册