hudson.tasks.Builder.all()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(174)

本文整理了Java中hudson.tasks.Builder.all()方法的一些代码示例,展示了Builder.all()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Builder.all()方法的具体详情如下:
包路径:hudson.tasks.Builder
类名称:Builder
方法名:all

Builder.all介绍

[英]Returns all the registered Builder descriptors.
[中]

代码示例

代码示例来源:origin: jenkinsci/jenkins

/**
 * Gets the builder descriptor by name. Primarily used for making them web-visible.
 */
public Descriptor<Builder> getBuilder(String shortClassName) {
  return findDescriptor(shortClassName, Builder.all());
}

代码示例来源:origin: jenkinsci/jenkins

public static List<Descriptor<Builder>> getBuilderDescriptors(AbstractProject<?,?> project) {
  return BuildStepDescriptor.filter(Builder.all(), project.getClass());
}

代码示例来源:origin: jenkinsci/jenkins

@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");
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

public static List<Descriptor<Builder>> getBuilderDescriptors(AbstractProject<?,?> project) {
  return BuildStepDescriptor.filter(Builder.all(), project.getClass());
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

/**
 * Gets the builder descriptor by name. Primarily used for making them web-visible.
 */
public Descriptor<Builder> getBuilder(String shortClassName) {
  return findDescriptor(shortClassName, Builder.all());
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

/**
 * Gets the builder descriptor by name. Primarily used for making them web-visible.
 */
public Descriptor<Builder> getBuilder(String shortClassName) {
  return findDescriptor(shortClassName, Builder.all());
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * Gets the builder descriptor by name. Primarily used for making them
 * web-visible.
 */
public Descriptor<Builder> getBuilder(String shortClassName) {
  return findDescriptor(shortClassName, Builder.all());
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

/**
 * Gets the builder descriptor by name. Primarily used for making them web-visible.
 */
public Descriptor<Builder> getBuilder(String shortClassName) {
  return findDescriptor(shortClassName, Builder.all());
}

代码示例来源:origin: hudson/hudson-2.x

/**
 * Gets the builder descriptor by name. Primarily used for making them web-visible.
 */
public Descriptor<Builder> getBuilder(String shortClassName) {
  return findDescriptor(shortClassName, Builder.all());
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

public static List<Descriptor<Builder>> getBuilderDescriptors(AbstractProject<?, ?> project) {
  return BuildStepDescriptor.filter(Builder.all(), project.getClass());
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

public static List<Descriptor<Builder>> getBuilderDescriptors(AbstractProject<?,?> project) {
  return BuildStepDescriptor.filter(Builder.all(), project.getClass());
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

public static List<Descriptor<Builder>> getBuilderDescriptors(AbstractProject<?,?> project) {
  return BuildStepDescriptor.filter(Builder.all(), project.getClass());
}

代码示例来源:origin: org.jvnet.hudson.plugins/m2-extra-steps

@Override
public BuildWrapper newInstance(StaplerRequest req, JSONObject formData) throws FormException {
  M2ExtraStepsWrapper instance = req.bindJSON(M2ExtraStepsWrapper.class, formData);
  instance.preBuildSteps = Descriptor.newInstancesFromHeteroList(req, formData, "preBuildSteps", Builder.all());
  instance.postBuildSteps = Descriptor.newInstancesFromHeteroList(req, formData, "postBuildSteps", Builder.all());
  return instance;
}

代码示例来源:origin: jenkinsci/promoted-builds-plugin

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;
}

代码示例来源:origin: jenkinsci/testlink-plugin

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;
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

@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()));
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

@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()));
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

@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()));
}

代码示例来源:origin: hudson/hudson-2.x

@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()));
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

@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");
}

相关文章