Navigation Menu

Skip to content

Commit

Permalink
JENKINS-44989 - addIssuesFromDependentBuilds method shouldn't call ad…
Browse files Browse the repository at this point in the history
…dIssuesRecursive
  • Loading branch information
ttat authored and warden committed Mar 12, 2018
1 parent 6a1f829 commit c1d681b
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -128,11 +128,16 @@ protected void addIssuesFromCurrentBuild(Run<?, ?> build, JiraSite site, TaskLis
* {@link #addIssuesRecursive(Run, JiraSite, TaskListener, Set) is called.
*/
protected void addIssuesFromDependentBuilds(Run<?, ?> build, JiraSite site, TaskListener listener,
Set<String> issueIds) {
Set<String> issueIds) {
Pattern pattern = site.getIssuePattern();

for (DependencyChange depc : RunScmChangeExtractor.getDependencyChanges(build).values()) {
for (AbstractBuild<?, ?> b : depc.getBuilds()) {
getLogger().finer("Searching for JIRA issues in dependency " + b + " of " + build);
addIssuesRecursive(b, site, listener, issueIds);

// Fix JENKINS-44989
// The original code before refactoring just called "findIssues", not "findIssueIdsRecursive"
findIssues(b, issueIds, pattern, listener);
}
}
}
Expand Down

0 comments on commit c1d681b

Please sign in to comment.