本文整理了Java中hudson.model.AbstractProject.getBuilds()
方法的一些代码示例,展示了AbstractProject.getBuilds()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractProject.getBuilds()
方法的具体详情如下:
包路径:hudson.model.AbstractProject
类名称:AbstractProject
方法名:getBuilds
暂无
代码示例来源:origin: jenkinsci/jenkins
/**
* 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;
}
代码示例来源:origin: jenkinsci/jenkins
protected int run() throws Exception {
RangeSet rs = RangeSet.fromString(range,false);
return act((List)job.getBuilds(rs));
}
代码示例来源:origin: jenkinsci/jenkins
public void buildDependencyGraph(AbstractProject owner, DependencyGraph graph) {
if (enableFingerprintsInDependencyGraph) {
RunList builds = owner.getBuilds();
Set<String> seenUpstreamProjects = new HashSet<String>();
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* 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;
}
代码示例来源:origin: org.jenkins-ci.plugins/global-build-stats
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());
}
}
代码示例来源:origin: Diabol/delivery-pipeline-plugin
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;
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
@Override
protected HistoryWidget createHistoryWidget() {
return new BuildHistoryWidget<R>(this, getBuilds(), HISTORY_ADAPTER);
}
代码示例来源:origin: etsy/jenkins-master-project
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;
}
}
代码示例来源:origin: jenkinsci/testlink-plugin
/**
* 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;
}
代码示例来源:origin: jenkinsci/promoted-builds-plugin
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;
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
protected int run() throws Exception {
RangeSet rs = RangeSet.fromString(range, false);
return act((List) job.getBuilds(rs));
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
protected int run() throws Exception {
RangeSet rs = RangeSet.fromString(range,false);
return act((List)job.getBuilds(rs));
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
protected int run() throws Exception {
RangeSet rs = RangeSet.fromString(range,false);
return act((List)job.getBuilds(rs));
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
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;
}
代码示例来源:origin: hudson/hudson-2.x
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;
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
public boolean historyAvailable() {
if (testObject.getOwner().getParent().getBuilds().size() > 1) {
return true;
} else {
return false;
}
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
public boolean historyAvailable() {
if (testObject.getOwner().getParent().getBuilds().size() > 1) {
return true;
} else {
return false;
}
}
代码示例来源:origin: hudson/hudson-2.x
public boolean historyAvailable() {
if (testObject.getOwner().getParent().getBuilds().size() > 1)
return true;
else
return false;
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
public boolean historyAvailable() {
if (testObject.getOwner().getParent().getBuilds().size() > 1)
return true;
else
return false;
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
public List<TestResult> getList() {
return getList(0, testObject.getOwner().getParent().getBuilds().size());
}
内容来源于网络,如有侵权,请联系作者删除!