@SuppressWarnings("unchecked") @Override public List<AbstractProject> getAllJobs() { return Hudson.getInstance().getAllItems(AbstractProject.class); }
/** * Returns all Ivy modules in this Jenkins instance. */ protected Collection<IvyModule> getAllIvyModules() { return Hudson.getInstance().getAllItems(IvyModule.class); }
/** * Gets the names of all the {@link Job}s. */ public Collection<String> getJobNames() { List<String> names = new ArrayList<String>(); for (Job j : getAllItems(Job.class)) { names.add(j.getFullName()); } return names; }
@SuppressWarnings("rawtypes") public List<AbstractProject> getAllProjects() { // Hudson checks that items are readable by the current context (has Item.READ perms) return getHudson().getAllItems(AbstractProject.class); }
@SuppressWarnings("rawtypes") public List<AbstractProject> getAllProjects() { // Hudson checks that items are readable by the current context (has Item.READ perms) return getHudson().getAllItems(AbstractProject.class); }
/** * Gets the names of all the {@link Job}s. */ public Collection<String> getJobNames() { List<String> names = new ArrayList<String>(); for (Job j : getAllItems(Job.class)) { names.add(j.getFullName()); } return names; }
/** * Gets the names of all the {@link Job}s. */ public Collection<String> getJobNames() { List<String> names = new ArrayList<String>(); for (Job j : getAllItems(Job.class)) { names.add(j.getFullName()); } return names; }
/** * Returns all Ivy modules in this Jenkins instance. */ protected Collection<IvyModule> getAllIvyModules() { return Hudson.getInstance().getAllItems(IvyModule.class); }
/** * Gets the names of all the {@link Job}s. */ public Collection<String> getJobNames() { List<String> names = new ArrayList<String>(); for (Job j : getAllItems(Job.class)) { names.add(j.getFullName()); } return names; }
/** * Gets all the {@link AbstractProject}s that this user has committed to. * @since 1.191 */ public Set<AbstractProject<?,?>> getProjects() { Set<AbstractProject<?,?>> r = new HashSet<AbstractProject<?,?>>(); for (AbstractProject<?,?> p : Hudson.getInstance().getAllItems(AbstractProject.class)) if(p.hasParticipant(this)) r.add(p); return r; }
/** * Gets all the {@link AbstractProject}s that this user has committed to. * @since 1.191 */ public Set<AbstractProject<?,?>> getProjects() { Set<AbstractProject<?,?>> r = new HashSet<AbstractProject<?,?>>(); for (AbstractProject<?,?> p : Hudson.getInstance().getAllItems(AbstractProject.class)) if(p.hasParticipant(this)) r.add(p); return r; }
/** * Returns selected ccascading project. * * @return cascading project. */ @SuppressWarnings({"unchecked"}) public synchronized JobT getCascadingProject() { if (StringUtils.isNotBlank(cascadingProjectName) && cascadingProject == null) { cascadingProject = (JobT) Functions.getItemByName(Hudson.getInstance().getAllItems(this.getClass()), cascadingProjectName); } return cascadingProject; }
/** * Gets all the {@link AbstractProject}s that this user has committed to. * @since 1.191 */ public Set<AbstractProject<?,?>> getProjects() { Set<AbstractProject<?,?>> r = new HashSet<AbstractProject<?,?>>(); for (AbstractProject<?,?> p : Hudson.getInstance().getAllItems(AbstractProject.class)) if(p.hasParticipant(this)) r.add(p); return r; }
public Collection<AbstractProject> vertices() { // only include projects that have some dependency List<AbstractProject> r = new ArrayList<AbstractProject>(); for (AbstractProject p : Hudson.getInstance().getAllItems(AbstractProject.class)) { if(!getDownstream(p).isEmpty() || !getUpstream(p).isEmpty()) r.add(p); } return r; }
public Collection<AbstractProject> vertices() { // only include projects that have some dependency List<AbstractProject> r = new ArrayList<AbstractProject>(); for (AbstractProject p : Hudson.getInstance().getAllItems(AbstractProject.class)) { if(!getDownstream(p).isEmpty() || !getUpstream(p).isEmpty()) r.add(p); } return r; }
public Cache() { for( MavenModule m : Hudson.getInstance().getAllItems(MavenModule.class)) modules.put(m.getModuleName(),m); }
/** * Returns all {@code CVSROOT} strings used in the current Hudson installation. */ public Set<String> getAllCvsRoots() { Set<String> r = new TreeSet<String>(); for (AbstractProject p : Hudson.getInstance().getAllItems(AbstractProject.class)) { SCM scm = p.getScm(); if (scm instanceof CVSSCM) { CVSSCM cvsscm = (CVSSCM) scm; r.add(cvsscm.getCvsRoot()); } } return r; }
public BuildTimelineWidget getTimeline() { Collection<Job> allJobs = Hudson.getInstance().getAllItems(Job.class); return new BuildTimelineWidget(BuildHistoryList.newBuildHistoryList(allJobs)); }
public RunList getBuilds() { return new RunList(Hudson.getInstance().getAllItems(Job.class)).node(getNode()); }
public RunList getBuilds() { return new RunList(Hudson.getInstance().getAllItems(Job.class)).node(getNode()); }