hudson.model.Project.getBuildersList()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(6.7k)|赞(0)|评价(0)|浏览(119)

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

Project.getBuildersList介绍

暂无

代码示例

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

public List<Builder> getBuilders() {
  return getBuildersList().toList();
}

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

public MavenInstallation inferMavenInstallation() {
  Maven m = getBuildersList().get(Maven.class);
  if (m!=null)    return m.getMaven();
  return null;
}

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

@Override
protected Set<ResourceActivity> getResourceActivities() {
  final Set<ResourceActivity> activities = new HashSet<ResourceActivity>();
  activities.addAll(super.getResourceActivities());
  activities.addAll(Util.filter(getBuildersList(),ResourceActivity.class));
  activities.addAll(Util.filter(getPublishersList(),ResourceActivity.class));
  activities.addAll(Util.filter(getBuildWrappersList(),ResourceActivity.class));
  return activities;
}

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

List<Action> r = super.createTransientActions();
for (BuildStep step : getBuildersList()) {
  try {
    r.addAll(step.getProjectActions(this));

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

@Override protected void buildDependencyGraph(DependencyGraph graph) {
  super.buildDependencyGraph(graph);
  getPublishersList().buildDependencyGraph(this,graph);
  getBuildersList().buildDependencyGraph(this,graph);
  getBuildWrappersList().buildDependencyGraph(this,graph);
}

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

@Override
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException {
  super.onLoad(parent, name);
  getBuildersList().setOwner(this);
  getPublishersList().setOwner(this);
  getBuildWrappersList().setOwner(this);
}

代码示例来源: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.plugins/s3

private static List<S3CopyArtifact> getCopiers(AbstractProject project) {
    DescribableList<Builder,Descriptor<Builder>> list =
        project instanceof Project ? ((Project<?,?>)project).getBuildersList()
         : (project instanceof MatrixProject ?
           ((MatrixProject)project).getBuildersList() : null);
    if (list == null) return Collections.emptyList();
    return (List<S3CopyArtifact>)list.getAll(S3CopyArtifact.class);
  }
}

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

public MavenInstallation inferMavenInstallation() {
  Maven m = getBuildersList().get(Maven.class);
  if (m!=null)    return m.getMaven();
  return null;
}

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

public MavenInstallation inferMavenInstallation() {
  Maven m = getBuildersList().get(Maven.class);
  if (m!=null)    return m.getMaven();
  return null;
}

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

public MavenInstallation inferMavenInstallation() {
  Maven m = getBuildersList().get(Maven.class);
  if (m!=null)    return m.getMaven();
  return null;
}

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

public MavenInstallation inferMavenInstallation() {
  Maven m = getBuildersList().get(Maven.class);
  if (m != null) {
    return m.getMaven();
  }
  return null;
}
/**

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

@Override
protected Set<ResourceActivity> getResourceActivities() {
  final Set<ResourceActivity> activities = new HashSet<ResourceActivity>();
  activities.addAll(super.getResourceActivities());
  activities.addAll(Util.filter(getBuildersList(),ResourceActivity.class));
  activities.addAll(Util.filter(getPublishersList(),ResourceActivity.class));
  activities.addAll(Util.filter(getBuildWrappersList(),ResourceActivity.class));
  return activities;
}

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

@Override
protected Set<ResourceActivity> getResourceActivities() {
  final Set<ResourceActivity> activities = new HashSet<ResourceActivity>();
  activities.addAll(super.getResourceActivities());
  activities.addAll(Util.filter(getBuildersList(), ResourceActivity.class));
  activities.addAll(Util.filter(getPublishersList(),ResourceActivity.class));
  activities.addAll(Util.filter(getBuildWrappersList(), ResourceActivity.class));
  return activities;
}

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

@Override
protected Set<ResourceActivity> getResourceActivities() {
  final Set<ResourceActivity> activities = new HashSet<ResourceActivity>();
  activities.addAll(super.getResourceActivities());
  activities.addAll(Util.filter(getBuildersList(), ResourceActivity.class));
  activities.addAll(Util.filter(getPublishersList(), ResourceActivity.class));
  activities.addAll(Util.filter(getBuildWrappersList(), ResourceActivity.class));
  return activities;
}

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

@Override
protected Set<ResourceActivity> getResourceActivities() {
  final Set<ResourceActivity> activities = new HashSet<ResourceActivity>();
  activities.addAll(super.getResourceActivities());
  activities.addAll(Util.filter(getBuildersList(), ResourceActivity.class));
  activities.addAll(Util.filter(getPublishersList(),ResourceActivity.class));
  activities.addAll(Util.filter(getBuildWrappersList(), ResourceActivity.class));
  return activities;
}

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

@Override
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException {
  super.onLoad(parent, name);
  getBuildersList().setOwner(this);
  getPublishersList().setOwner(this);
  getBuildWrappersList().setOwner(this);
}

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

/**
 * @throws UnsupportedProjectException if the Project type is {@link Type#UNSUPPORTED}.
 */
public DescribableList<Builder,Descriptor<Builder>> getBuildersList() {
  switch (getType()) {
    case NORMAL:
      return asNormal().getBuildersList();
    case MULTICONFIG:
      return asMultiConfig().getBuildersList();
  }
  throw new UnsupportedProjectException(getDelegate());
}

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

@Override protected void buildDependencyGraph(DependencyGraph graph) {
  super.buildDependencyGraph(graph);
  getPublishersList().buildDependencyGraph(this,graph);
  getBuildersList().buildDependencyGraph(this,graph);
  getBuildWrappersList().buildDependencyGraph(this,graph);
}

代码示例来源: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");
}

相关文章