@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; }
@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; }
AbstractBuild<?,?> upstreamBuild = upstreamProject.getLastCompletedBuild(); upstreamBuild != null; upstreamBuild = upstreamBuild.getPreviousCompletedBuild() ) { if (upstreamBuild.getDisplayName().equals(upstreamBuildNumber)) {
if (culprits==null) { Set<User> r = new HashSet<User>(); R p = getPreviousCompletedBuild(); if (p !=null && isBuilding()) { Result pr = p.getResult();
if (culprits==null) { Set<User> r = new HashSet<User>(); R p = getPreviousCompletedBuild(); if (p !=null && isBuilding()) { Result pr = p.getResult();
if (culprits == null) { Set<User> r = new HashSet<User>(); R p = getPreviousCompletedBuild(); if (p != null && isBuilding()) { Result pr = p.getResult();
if (culprits==null) { Set<User> r = new HashSet<User>(); R p = getPreviousCompletedBuild(); if (p !=null && isBuilding()) { Result pr = p.getResult();