提交 0f6dad00 编写于 作者: K kohsuke

Use JSON to retrieve values to honor the scope

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@27379 71c3de6d-444a-0410-be80-ed276b4c234a
上级 0ce32316
......@@ -2307,18 +2307,18 @@ public final class Hudson extends Node implements ItemGroup<TopLevelItem>, Stapl
}
}
numExecutors = Integer.parseInt(req.getParameter("_.numExecutors"));
numExecutors = json.getInt("numExecutors");
if(req.hasParameter("master.mode"))
mode = Mode.valueOf(req.getParameter("master.mode"));
else
mode = Mode.NORMAL;
label = fixNull(req.getParameter("_.labelString"));
label = json.optString("labelString","");
labelSet=null;
quietPeriod = Integer.parseInt(req.getParameter("quiet_period"));
quietPeriod = json.getInt("quiet_period");
scmCheckoutRetryCount = Integer.parseInt(req.getParameter("retry_count"));
scmCheckoutRetryCount = json.getInt("retry_count");
systemMessage = Util.nullify(req.getParameter("system_message"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册