diff --git a/core/src/main/java/hudson/model/AbstractProject.java b/core/src/main/java/hudson/model/AbstractProject.java index 556bb6e077820eb213b920a089eddc2f1b9ea1ad..e32b49ca49a6ec96a951aa101cba8404ed982023 100644 --- a/core/src/main/java/hudson/model/AbstractProject.java +++ b/core/src/main/java/hudson/model/AbstractProject.java @@ -1342,10 +1342,10 @@ public abstract class AbstractProject
,R extends A if(req.getParameter("hasCustomScmCheckoutRetryCount")!=null) { scmCheckoutRetryCount = Integer.parseInt(req.getParameter("scmCheckoutRetryCount")); } else { - scmCheckoutRetryCount = null; + scmCheckoutRetryCount = null; } - setBlockBuildWhenUpstreamBuilding(req.getParameter("blockBuildWhenUpstreamBuilding")!=null); - + blockBuildWhenUpstreamBuilding = req.getParameter("blockBuildWhenUpstreamBuilding")!=null; + if(req.getParameter("hasSlaveAffinity")!=null) { canRoam = false; assignedNode = req.getParameter("slave"); @@ -1358,7 +1358,7 @@ public abstract class AbstractProject
,R extends A assignedNode = null; } - setConcurrentBuild(req.getSubmittedForm().has("concurrentBuild")); + concurrentBuild = req.getSubmittedForm().has("concurrentBuild"); authToken = BuildAuthorizationToken.create(req);