提交 43a502d9 编写于 作者: K kohsuke

fixed #734. Don't allow # of executors to be 0.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6782 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c12c4dba
...@@ -103,6 +103,9 @@ public final class Slave implements Node, Serializable { ...@@ -103,6 +103,9 @@ public final class Slave implements Node, Serializable {
// throw new FormException("Invalid slave configuration for " + name + ". No such directory exists: " + localFS, null); // throw new FormException("Invalid slave configuration for " + name + ". No such directory exists: " + localFS, null);
if (remoteFS.equals("")) if (remoteFS.equals(""))
throw new FormException("Invalid slave configuration for " + name + ". No remote directory given", null); throw new FormException("Invalid slave configuration for " + name + ". No remote directory given", null);
if (numExecutors<=0)
throw new FormException("Invalid slave configuration for " + name + ". Invalid # of executors.", null);
} }
public String getCommand() { public String getCommand() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册