本文整理了Java中hudson.model.AbstractBuild.getUpstreamRelationship()
方法的一些代码示例,展示了AbstractBuild.getUpstreamRelationship()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractBuild.getUpstreamRelationship()
方法的具体详情如下:
包路径:hudson.model.AbstractBuild
类名称:AbstractBuild
方法名:getUpstreamRelationship
[英]Gets the dependency relationship from this build (as the sink) and that project (as the source.)
[中]获取此生成(作为接收器)和该项目(作为源)的依赖关系
代码示例来源:origin: jenkinsci/jenkins
private Map<AbstractProject, Integer> _getUpstreamBuilds(Collection<AbstractProject> projects) {
Map<AbstractProject,Integer> r = new HashMap<AbstractProject,Integer>();
for (AbstractProject p : projects) {
int n = getUpstreamRelationship(p);
if (n>=0)
r.put(p,n);
}
return r;
}
代码示例来源:origin: jenkinsci/jenkins
/**
* Works like {@link #getUpstreamRelationship(AbstractProject)} but returns the
* actual build object.
*
* @return
* null if no such upstream build was found, or it was found but the
* build record is already lost.
*/
public AbstractBuild<?,?> getUpstreamRelationshipBuild(AbstractProject<?,?> that) {
int n = getUpstreamRelationship(that);
if (n==-1) return null;
return that.getBuildByNumber(n);
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
private Map<AbstractProject, Integer> _getUpstreamBuilds(Collection<AbstractProject> projects) {
Map<AbstractProject, Integer> r = new HashMap<AbstractProject, Integer>();
for (AbstractProject p : projects) {
int n = getUpstreamRelationship(p);
if (n >= 0) {
r.put(p, n);
}
}
return r;
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
private Map<AbstractProject, Integer> _getUpstreamBuilds(Collection<AbstractProject> projects) {
Map<AbstractProject,Integer> r = new HashMap<AbstractProject,Integer>();
for (AbstractProject p : projects) {
int n = getUpstreamRelationship(p);
if (n>=0)
r.put(p,n);
}
return r;
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
private Map<AbstractProject, Integer> _getUpstreamBuilds(Collection<AbstractProject> projects) {
Map<AbstractProject,Integer> r = new HashMap<AbstractProject,Integer>();
for (AbstractProject p : projects) {
int n = getUpstreamRelationship(p);
if (n>=0)
r.put(p,n);
}
return r;
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
private Map<AbstractProject, Integer> _getUpstreamBuilds(Collection<AbstractProject> projects) {
Map<AbstractProject,Integer> r = new HashMap<AbstractProject,Integer>();
for (AbstractProject p : projects) {
int n = getUpstreamRelationship(p);
if (n>=0)
r.put(p,n);
}
return r;
}
代码示例来源:origin: hudson/hudson-2.x
private Map<AbstractProject, Integer> _getUpstreamBuilds(Collection<AbstractProject> projects) {
Map<AbstractProject,Integer> r = new HashMap<AbstractProject,Integer>();
for (AbstractProject p : projects) {
int n = getUpstreamRelationship(p);
if (n>=0)
r.put(p,n);
}
return r;
}
代码示例来源:origin: hudson/hudson-2.x
/**
* Works like {@link #getUpstreamRelationship(AbstractProject)} but returns the
* actual build object.
*
* @return
* null if no such upstream build was found, or it was found but the
* build record is already lost.
*/
public AbstractBuild<?,?> getUpstreamRelationshipBuild(AbstractProject<?,?> that) {
int n = getUpstreamRelationship(that);
if (n==-1) return null;
return that.getBuildByNumber(n);
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Works like {@link #getUpstreamRelationship(AbstractProject)} but returns
* the actual build object.
*
* @return null if no such upstream build was found, or it was found but the
* build record is already lost.
*/
public AbstractBuild<?, ?> getUpstreamRelationshipBuild(AbstractProject<?, ?> that) {
int n = getUpstreamRelationship(that);
if (n == -1) {
return null;
}
return that.getBuildByNumber(n);
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
/**
* Works like {@link #getUpstreamRelationship(AbstractProject)} but returns the
* actual build object.
*
* @return
* null if no such upstream build was found, or it was found but the
* build record is already lost.
*/
public AbstractBuild<?,?> getUpstreamRelationshipBuild(AbstractProject<?,?> that) {
int n = getUpstreamRelationship(that);
if (n==-1) return null;
return that.getBuildByNumber(n);
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Works like {@link #getUpstreamRelationship(AbstractProject)} but returns the
* actual build object.
*
* @return
* null if no such upstream build was found, or it was found but the
* build record is already lost.
*/
public AbstractBuild<?,?> getUpstreamRelationshipBuild(AbstractProject<?,?> that) {
int n = getUpstreamRelationship(that);
if (n==-1) return null;
return that.getBuildByNumber(n);
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Works like {@link #getUpstreamRelationship(AbstractProject)} but returns the
* actual build object.
*
* @return
* null if no such upstream build was found, or it was found but the
* build record is already lost.
*/
public AbstractBuild<?,?> getUpstreamRelationshipBuild(AbstractProject<?,?> that) {
int n = getUpstreamRelationship(that);
if (n==-1) return null;
return that.getBuildByNumber(n);
}
代码示例来源:origin: org.jvnet.hudson.main/maven-plugin
int n = dlb.getUpstreamRelationship(up);
if(n==-1) continue;
代码示例来源:origin: jenkinsci/maven-plugin
int n = dlb.getUpstreamRelationship(up);
if(n==-1) continue;
代码示例来源:origin: org.jvnet.hudson.plugins/ivy
int n = dlb.getUpstreamRelationship(up);
if(n==-1) continue;
代码示例来源:origin: org.hudsonci.plugins/ivy
int n = dlb.getUpstreamRelationship(up);
if(n==-1) continue;
代码示例来源:origin: org.jenkins-ci.plugins/ivy
int n = dlb.getUpstreamRelationship(up);
if(n==-1) continue;
内容来源于网络,如有侵权,请联系作者删除!