@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req, rsp); reporters.rebuild(req, req.getSubmittedForm(),MavenReporters.getConfigurableList()); goals = Util.fixEmpty(req.getParameter("goals").trim()); // dependency setting might have been changed by the user, so rebuild. Hudson.getInstance().rebuildDependencyGraph(); }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req, rsp); reporters.rebuild(req, req.getSubmittedForm(),MavenReporters.getConfigurableList()); goals = Util.fixEmpty(req.getParameter("goals").trim()); // dependency setting might have been changed by the user, so rebuild. Jenkins.getInstance().rebuildDependencyGraphAsync(); }
protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req,rsp); JSONObject json = req.getSubmittedForm(); rootPOM = Util.fixEmpty(req.getParameter("rootPOM").trim()); if(rootPOM!=null && rootPOM.equals("pom.xml")) rootPOM=null; // normalization goals = Util.fixEmpty(req.getParameter("goals").trim()); alternateSettings = Util.fixEmpty(req.getParameter("alternateSettings").trim()); mavenOpts = Util.fixEmpty(req.getParameter("mavenOpts").trim()); mavenName = req.getParameter("maven_version"); aggregatorStyleBuild = !req.hasParameter("maven.perModuleBuild"); usePrivateRepository = req.hasParameter("maven.usePrivateRepository"); ignoreUpstremChanges = !json.has("triggerByDependency"); incrementalBuild = req.hasParameter("maven.incrementalBuild"); archivingDisabled = req.hasParameter("maven.archivingDisabled"); resolveDependencies = req.hasParameter( "maven.resolveDependencies" ); processPlugins = req.hasParameter( "maven.processPlugins" ); mavenValidationLevel = NumberUtils.toInt( req.getParameter( "maven.validationLevel" ), -1 ); DescribableListUtil.buildFromJson(this, req, json, MavenReporters.getConfigurableList()); DescribableListUtil.buildFromJson(this, req, json, BuildStepDescriptor.filter(Publisher.all(), this.getClass())); DescribableListUtil.buildFromJson(this, req, json, BuildWrappers.getFor(this)); }
processPlugins = req.hasParameter( "maven.processPlugins" ); mavenValidationLevel = NumberUtils.toInt(req.getParameter("maven.validationLevel"), -1); reporters.rebuild(req,json,MavenReporters.getConfigurableList()); publishers.rebuildHetero(req, json, Publisher.all(), "publisher"); buildWrappers.rebuild(req, json, BuildWrappers.getFor(this));