/** * Gets the publisher descriptor by name. Primarily used for making them web-visible. */ public Descriptor<Publisher> getPublisher(String shortClassName) { return findDescriptor(shortClassName, Publisher.all()); }
public static List<Descriptor<Publisher>> getPublisherDescriptors(AbstractProject<?,?> project) { return BuildStepDescriptor.filter(Publisher.all(), project.getClass()); }
@Override protected void submit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException { super.submit(req,rsp); JSONObject json = req.getSubmittedForm(); getBuildWrappersList().rebuild(req,json, BuildWrappers.getFor(this)); getBuildersList().rebuildHetero(req,json, Builder.all(), "builder"); getPublishersList().rebuildHetero(req, json, Publisher.all(), "publisher"); }
/** * Gets the publisher descriptor by name. Primarily used for making them web-visible. */ public Descriptor<Publisher> getPublisher(String shortClassName) { return findDescriptor(shortClassName, Publisher.all()); }
/** * Gets the publisher descriptor by name. Primarily used for making them * web-visible. */ public Descriptor<Publisher> getPublisher(String shortClassName) { return findDescriptor(shortClassName, Publisher.all()); }
/** * Gets the publisher descriptor by name. Primarily used for making them web-visible. */ public Descriptor<Publisher> getPublisher(String shortClassName) { return findDescriptor(shortClassName, Publisher.all()); }
/** * Gets the publisher descriptor by name. Primarily used for making them web-visible. */ public Descriptor<Publisher> getPublisher(String shortClassName) { return findDescriptor(shortClassName, Publisher.all()); }
/** * Gets the publisher descriptor by name. Primarily used for making them web-visible. */ public Descriptor<Publisher> getPublisher(String shortClassName) { return findDescriptor(shortClassName, Publisher.all()); }
public static List<Descriptor<Publisher>> getPublisherDescriptors(AbstractProject<?, ?> project) { return BuildStepDescriptor.filter(Publisher.all(), project.getClass()); }
public static List<Descriptor<Publisher>> getPublisherDescriptors(AbstractProject<?,?> project) { return BuildStepDescriptor.filter(Publisher.all(), project.getClass()); }
public static List<Descriptor<? extends BuildStep>> getAll() { List<Descriptor<? extends BuildStep>> list = new ArrayList<Descriptor<? extends BuildStep>>(); addTo(Builder.all(), list); addTo(Publisher.all(), list); return list; }
public static List<Descriptor<? extends BuildStep>> getBuildSteps() { List<Descriptor<? extends BuildStep>> list = new ArrayList<Descriptor<? extends BuildStep>>(); addTo(Builder.all(), list); addTo(Publisher.all(), list); return list; }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req, rsp); JSONObject json = req.getSubmittedForm(); buildBuildWrappers(req, json, BuildWrappers.getFor(this)); setBuilders(DescribableListUtil.buildFromHetero(this, req, json, "builder", Builder.all())); buildPublishers(req, json, BuildStepDescriptor.filter(Publisher.all(), this.getClass())); }
@Override protected void submit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException { super.submit(req,rsp); JSONObject json = req.getSubmittedForm(); buildBuildWrappers(req, json, BuildWrappers.getFor(this)); setBuilders(DescribableListUtil.buildFromHetero(this, req, json, "builder", Builder.all())); buildPublishers(req, json, BuildStepDescriptor.filter(Publisher.all(), this.getClass())); }
@Override protected void submit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException { super.submit(req,rsp); JSONObject json = req.getSubmittedForm(); buildBuildWrappers(req, json, BuildWrappers.getFor(this)); setBuilders(DescribableListUtil.buildFromHetero(this, req, json, "builder", Builder.all())); buildPublishers(req, json, BuildStepDescriptor.filter(Publisher.all(), this.getClass())); }
@Override protected void submit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException { super.submit(req,rsp); JSONObject json = req.getSubmittedForm(); buildBuildWrappers(req, json, BuildWrappers.getFor(this)); setBuilders(DescribableListUtil.buildFromHetero(this, req, json, "builder", Builder.all())); buildPublishers(req, json, BuildStepDescriptor.filter(Publisher.all(), this.getClass())); }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req, rsp); targets = Util.fixEmptyAndTrim(req.getParameter("targets")); relativePathToDescriptorFromModuleRoot = Util.fixEmptyAndTrim(req.getParameter("relativePathToDescriptorFromModuleRoot")); publishers.rebuild(req,req.getSubmittedForm(),BuildStepDescriptor.filter(Publisher.all(),this.getClass())); // 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); targets = Util.fixEmptyAndTrim(req.getParameter("targets")); relativePathToDescriptorFromModuleRoot = Util.fixEmptyAndTrim(req.getParameter("relativePathToDescriptorFromModuleRoot")); publishers.rebuild(req,req.getSubmittedForm(),BuildStepDescriptor.filter(Publisher.all(),this.getClass())); // 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); targets = Util.fixEmptyAndTrim(req.getParameter("targets")); relativePathToDescriptorFromModuleRoot = Util.fixEmptyAndTrim(req.getParameter("relativePathToDescriptorFromModuleRoot")); publishers.rebuild(req,req.getSubmittedForm(),BuildStepDescriptor.filter(Publisher.all(),this.getClass())); // 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); JSONObject json = req.getSubmittedForm(); getBuildWrappersList().rebuild(req,json, BuildWrappers.getFor(this)); getBuildersList().rebuildHetero(req,json, Builder.all(), "builder"); getPublishersList().rebuildHetero(req, json, Publisher.all(), "publisher"); }