/** * Gets the dependency relationship map between this project (as the source) * and that project (as the sink.) * * @return * can be empty but not null. build number of this project to the build * numbers of that project. */ public SortedMap<Integer, RangeSet> getRelationship(AbstractProject that) { TreeMap<Integer,RangeSet> r = new TreeMap<Integer,RangeSet>(REVERSE_INTEGER_COMPARATOR); checkAndRecord(that, r, this.getBuilds()); // checkAndRecord(that, r, that.getBuilds()); return r; }
protected int run() throws Exception { RangeSet rs = RangeSet.fromString(range,false); return act((List)job.getBuilds(rs)); }
public void buildDependencyGraph(AbstractProject owner, DependencyGraph graph) { if (enableFingerprintsInDependencyGraph) { RunList builds = owner.getBuilds(); Set<String> seenUpstreamProjects = new HashSet<String>();
/** * Gets the dependency relationship map between this project (as the source) * and that project (as the sink.) * * @return can be empty but not null. build number of this project to the * build numbers of that project. */ public SortedMap<Integer, RangeSet> getRelationship(AbstractProject that) { TreeMap<Integer, RangeSet> r = new TreeMap<Integer, RangeSet>(REVERSE_INTEGER_COMPARATOR); checkAndRecord(that, r, this.getBuilds()); // checkAndRecord(that, r, that.getBuilds()); return r; }
private static void addBuildsFrom(List<JobBuildResult> jobBuildResultsRead, AbstractProject project){ List<AbstractBuild> builds = project.getBuilds(); Iterator<AbstractBuild> buildIterator = builds.iterator(); while (buildIterator.hasNext()) { addBuild(jobBuildResultsRead, buildIterator.next()); } }
protected List<AbstractBuild> resolveBuilds(List<AbstractProject> firstProjects) { List<AbstractBuild> builds = new ArrayList<>(); for (AbstractProject firstProject : firstProjects) { builds.addAll(firstProject.getBuilds()); } builds.sort(new BuildStartTimeComparator()); return builds; }
@Override protected HistoryWidget createHistoryWidget() { return new BuildHistoryWidget<R>(this, getBuilds(), HISTORY_ADAPTER); }
public AbstractBuild findBuild(AbstractProject project, Cause cause) { if (project == null) return null; List<Run> builds = project.getBuilds(); for (Run build : builds) { List<Cause> causes = build.getCauses(); if (causes.contains(cause)) { return (AbstractBuild) build; } } return null; } }
/** * Checks if it should display graph. * * @return <code>true</code> if it should display graph and <code>false</code> otherwise. */ public final boolean isDisplayGraph() { return project.getBuilds().size() > 0; }
public List<Promotion> getPromotions(PromotionProcess promotionProcess){ List<Promotion> list = new ArrayList<Promotion>(); for( AbstractBuild<?,?> build : owner.getBuilds() ) { PromotedBuildAction a = build.getAction(PromotedBuildAction.class); if(a!=null && a.contains(promotionProcess)) list.addAll( a.getPromotionBuilds(promotionProcess) ); } Collections.sort(list); return list; }
protected int run() throws Exception { RangeSet rs = RangeSet.fromString(range, false); return act((List) job.getBuilds(rs)); }
protected int run() throws Exception { RangeSet rs = RangeSet.fromString(range,false); return act((List)job.getBuilds(rs)); }
protected int run() throws Exception { RangeSet rs = RangeSet.fromString(range,false); return act((List)job.getBuilds(rs)); }
public List<TestResult> getList(int start, int end) { List<TestResult> list = new ArrayList<TestResult>(); end = Math.min(end, testObject.getOwner().getParent().getBuilds().size()); for (AbstractBuild<?,?> b: testObject.getOwner().getParent().getBuilds().subList(start, end)) { if (b.isBuilding()) continue; TestResult o = testObject.getResultInBuild(b); if (o != null) { list.add(o); } } return list; }
public List<TestResult> getList(int start, int end) { List<TestResult> list = new ArrayList<TestResult>(); end = Math.min(end, testObject.getOwner().getParent().getBuilds().size()); for (AbstractBuild<?,?> b: testObject.getOwner().getParent().getBuilds().subList(start, end)) { if (b.isBuilding()) continue; TestResult o = testObject.getResultInBuild(b); if (o != null) { list.add(o); } } return list; }
public boolean historyAvailable() { if (testObject.getOwner().getParent().getBuilds().size() > 1) { return true; } else { return false; } }
public boolean historyAvailable() { if (testObject.getOwner().getParent().getBuilds().size() > 1) { return true; } else { return false; } }
public boolean historyAvailable() { if (testObject.getOwner().getParent().getBuilds().size() > 1) return true; else return false; }
public boolean historyAvailable() { if (testObject.getOwner().getParent().getBuilds().size() > 1) return true; else return false; }
public List<TestResult> getList() { return getList(0, testObject.getOwner().getParent().getBuilds().size()); }