/** * @deprecated as of 1.294 * Use {@link #parseSCM(StaplerRequest, AbstractProject)} and pass in the caller's project type. */ @Deprecated public static SCM parseSCM(StaplerRequest req) throws FormException, ServletException { return parseSCM(req,null); }
setScm(SCMS.parseSCM(req,this));
/** * @deprecated as of 1.294 * Use {@link #parseSCM(StaplerRequest, AbstractProject)} and pass in the caller's project type. */ public static SCM parseSCM(StaplerRequest req) throws FormException, ServletException { return parseSCM(req,null); }
/** * @deprecated as of 1.294 * Use {@link #parseSCM(StaplerRequest, AbstractProject)} and pass in the caller's project type. */ public static SCM parseSCM(StaplerRequest req) throws FormException, ServletException { return parseSCM(req,null); }
/** * @deprecated as of 1.294 Use * {@link #parseSCM(StaplerRequest, AbstractProject)} and pass in the * caller's project type. */ public static SCM parseSCM(StaplerRequest req) throws FormException, ServletException { return parseSCM(req, null); } }
/** * @deprecated as of 1.294 * Use {@link #parseSCM(StaplerRequest, AbstractProject)} and pass in the caller's project type. */ public static SCM parseSCM(StaplerRequest req) throws FormException, ServletException { return parseSCM(req,null); }
/** * @deprecated as of 1.294 * Use {@link #parseSCM(StaplerRequest, AbstractProject)} and pass in the caller's project type. */ @Deprecated public static SCM parseSCM(StaplerRequest req) throws FormException, ServletException { return parseSCM(req,null); }
setScm(SCMS.parseSCM(req, this));
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req,rsp); makeDisabled(null != req.getParameter("disable")); setJDK(req.getParameter("jdk")); setQuietPeriod(null != req.getParameter(HAS_QUIET_PERIOD_PROPERTY_NAME) ? req.getParameter("quiet_period") : null); setScmCheckoutRetryCount(null != req.getParameter(HAS_SCM_CHECKOUT_RETRY_COUNT_PROPERTY_NAME) ? req.getParameter("scmCheckoutRetryCount") : null); setBlockBuildWhenDownstreamBuilding(null != req.getParameter("blockBuildWhenDownstreamBuilding")); setBlockBuildWhenUpstreamBuilding(null != req.getParameter("blockBuildWhenUpstreamBuilding")); if (req.getParameter(APPOINTED_NODE_PROPERTY_NAME) != null) { // New logic for handling whether this choice came from the dropdown or textfield. if (BASIC_KEY.equals(req.getParameter(AFFINITY_CHO0SER_KEY))) { setAppointedNode( new AppointedNode(Util.fixEmptyAndTrim(req.getParameter(SLAVE_KEY)), false)); } else { setAppointedNode( new AppointedNode(Util.fixEmptyAndTrim(req.getParameter(ASSIGNED_LABEL_KEY)), true)); } } else { setAppointedNode(null); } setCleanWorkspaceRequired(null != req.getParameter("cleanWorkspaceRequired")); setConcurrentBuild(req.getSubmittedForm().has("concurrentBuild")); authToken = BuildAuthorizationToken.create(req); setScm(SCMS.parseSCM(req,this)); buildTriggers(req, req.getSubmittedForm(), Trigger.for_(this)); }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req, rsp); makeDisabled(null != req.getParameter("disable")); setJDK(req.getParameter("jdk")); setQuietPeriod(null != req.getParameter(HAS_QUIET_PERIOD_PROPERTY_NAME) ? req.getParameter("quiet_period") : null); setScmCheckoutRetryCount(null != req.getParameter(HAS_SCM_CHECKOUT_RETRY_COUNT_PROPERTY_NAME) ? req.getParameter("scmCheckoutRetryCount") : null); setBlockBuildWhenDownstreamBuilding(null != req.getParameter("blockBuildWhenDownstreamBuilding")); setBlockBuildWhenUpstreamBuilding(null != req.getParameter("blockBuildWhenUpstreamBuilding")); if (req.getParameter(APPOINTED_NODE_PROPERTY_NAME) != null) { // New logic for handling whether this choice came from the dropdown or textfield. if (BASIC_KEY.equals(req.getParameter(AFFINITY_CHO0SER_KEY))) { setAppointedNode( new AppointedNode(Util.fixEmptyAndTrim(req.getParameter(SLAVE_KEY)), false)); } else { setAppointedNode( new AppointedNode(Util.fixEmptyAndTrim(req.getParameter(ASSIGNED_LABEL_KEY)), true)); } } else { setAppointedNode(null); } setCleanWorkspaceRequired(null != req.getParameter("cleanWorkspaceRequired")); setConcurrentBuild(req.getSubmittedForm().has("concurrentBuild")); authToken = BuildAuthorizationToken.create(req); setScm(SCMS.parseSCM(req, this)); buildTriggers(req, req.getSubmittedForm(), Trigger.for_(this)); }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req,rsp); makeDisabled(null != req.getParameter("disable")); setJDK(req.getParameter("jdk")); setQuietPeriod(null != req.getParameter(HAS_QUIET_PERIOD_PROPERTY_NAME) ? req.getParameter("quiet_period") : null); setScmCheckoutRetryCount(null != req.getParameter(HAS_SCM_CHECKOUT_RETRY_COUNT_PROPERTY_NAME) ? req.getParameter("scmCheckoutRetryCount") : null); setBlockBuildWhenDownstreamBuilding(null != req.getParameter("blockBuildWhenDownstreamBuilding")); setBlockBuildWhenUpstreamBuilding(null != req.getParameter("blockBuildWhenUpstreamBuilding")); if (req.getParameter(APPOINTED_NODE_PROPERTY_NAME) != null) { // New logic for handling whether this choice came from the dropdown or textfield. if (BASIC_KEY.equals(req.getParameter(AFFINITY_CHO0SER_KEY))) { setAppointedNode( new AppointedNode(Util.fixEmptyAndTrim(req.getParameter(SLAVE_KEY)), false)); } else { setAppointedNode( new AppointedNode(Util.fixEmptyAndTrim(req.getParameter(ASSIGNED_LABEL_KEY)), true)); } } else { setAppointedNode(null); } setCleanWorkspaceRequired(null != req.getParameter("cleanWorkspaceRequired")); setConcurrentBuild(req.getSubmittedForm().has("concurrentBuild")); authToken = BuildAuthorizationToken.create(req); setScm(SCMS.parseSCM(req,this)); buildTriggers(req, req.getSubmittedForm(), Trigger.for_(this)); }
setScm(SCMS.parseSCM(req,this));