本文整理了Java中hudson.model.AbstractBuild.getDependencyChanges()
方法的一些代码示例,展示了AbstractBuild.getDependencyChanges()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractBuild.getDependencyChanges()
方法的具体详情如下:
包路径:hudson.model.AbstractBuild
类名称:AbstractBuild
方法名:getDependencyChanges
[英]Gets the changes in the dependency between the given build and this build.
[中]获取给定生成与此生成之间的依赖关系中的更改。
代码示例来源:origin: jenkinsci/jenkins
@Override
@Nonnull
public Set<User> calculateCulprits() {
Set<User> c = RunWithSCM.super.calculateCulprits();
AbstractBuild<P,R> p = getPreviousCompletedBuild();
if (upstreamCulprits) {
// If we have dependencies since the last successful build, add their authors to our list
if (p != null && p.getPreviousNotFailedBuild() != null) {
Map<AbstractProject, AbstractBuild.DependencyChange> depmap =
p.getDependencyChanges(p.getPreviousSuccessfulBuild());
for (AbstractBuild.DependencyChange dep : depmap.values()) {
for (AbstractBuild<?, ?> b : dep.getBuilds()) {
for (ChangeLogSet.Entry entry : b.getChangeSet()) {
c.add(entry.getAuthor());
}
}
}
}
}
return c;
}
代码示例来源:origin: jenkinsci/jira-plugin
public static Map<AbstractProject, DependencyChange> getDependencyChanges(Run<?, ?> run) {
if (run instanceof AbstractBuild) {
Run<?, ?> previousBuild = run.getPreviousBuild();
if (previousBuild instanceof AbstractBuild) {
return ((AbstractBuild) run).getDependencyChanges((AbstractBuild) previousBuild);
}
}
// jenkins workflow plugin etc.
return Maps.newHashMap();
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
@Override
@Nonnull
public Set<User> calculateCulprits() {
Set<User> c = RunWithSCM.super.calculateCulprits();
AbstractBuild<P,R> p = getPreviousCompletedBuild();
if (upstreamCulprits) {
// If we have dependencies since the last successful build, add their authors to our list
if (p != null && p.getPreviousNotFailedBuild() != null) {
Map<AbstractProject, AbstractBuild.DependencyChange> depmap =
p.getDependencyChanges(p.getPreviousSuccessfulBuild());
for (AbstractBuild.DependencyChange dep : depmap.values()) {
for (AbstractBuild<?, ?> b : dep.getBuilds()) {
for (ChangeLogSet.Entry entry : b.getChangeSet()) {
c.add(entry.getAuthor());
}
}
}
}
}
return c;
}
代码示例来源:origin: org.jvnet.hudson.plugins/jira
/**
* Finds the strings that match JIRA issue ID patterns.
*
* This method returns all likely candidates and doesn't check
* if such ID actually exists or not. We don't want to use
* {@link JiraSite#existsIssue(String)} here so that new projects
* in JIRA can be detected.
*/
private static Set<String> findIssueIdsRecursive(AbstractBuild<?,?> build, Pattern pattern,
BuildListener listener) {
Set<String> ids = new HashSet<String>();
// first, issues that were carried forward.
Run<?, ?> prev = build.getPreviousBuild();
if(prev!=null) {
JiraCarryOverAction a = prev.getAction(JiraCarryOverAction.class);
if(a!=null)
ids.addAll(a.getIDs());
}
// then issues in this build
findIssues(build, ids, pattern, listener);
// check for issues fixed in dependencies
for( DependencyChange depc : build.getDependencyChanges(build.getPreviousBuild()).values())
for(AbstractBuild<?, ?> b : depc.getBuilds())
findIssues(b,ids, pattern, listener);
return ids;
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
Map <AbstractProject,AbstractBuild.DependencyChange> depmap = getDependencyChanges(previousBuild);
for (AbstractBuild.DependencyChange dep : depmap.values()) {
for (AbstractBuild<?,?> b : dep.getBuilds()) {
代码示例来源:origin: hudson/hudson-2.x
Map <AbstractProject,AbstractBuild.DependencyChange> depmap = getDependencyChanges(previousBuild);
for (AbstractBuild.DependencyChange dep : depmap.values()) {
for (AbstractBuild<?,?> b : dep.getBuilds()) {
代码示例来源:origin: org.eclipse.hudson/hudson-core
Map<AbstractProject, AbstractBuild.DependencyChange> depmap = getDependencyChanges(previousBuild);
for (AbstractBuild.DependencyChange dep : depmap.values()) {
for (AbstractBuild<?, ?> b : dep.getBuilds()) {
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
Map <AbstractProject,AbstractBuild.DependencyChange> depmap = getDependencyChanges(previousBuild);
for (AbstractBuild.DependencyChange dep : depmap.values()) {
for (AbstractBuild<?,?> b : dep.getBuilds()) {
内容来源于网络,如有侵权,请联系作者删除!