Skip to content
Permalink
Browse files

Address JENKINS-25127 by using getAllIItems instead of getItems

  • Loading branch information
ryangardner committed Mar 20, 2015
1 parent 27a9d6f commit 2a49bac65fb7e05cd083e8b445ad2fcfb689ae0a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/cloudbees/jenkins/Cleaner.java
@@ -52,7 +52,7 @@ protected void doRun() throws Exception {
}

// subtract all the live repositories
for (AbstractProject<?,?> job : Hudson.getInstance().getItems(AbstractProject.class)) {
for (AbstractProject<?,?> job : Hudson.getInstance().getAllItems(AbstractProject.class)) {
GitHubPushTrigger trigger = job.getTrigger(GitHubPushTrigger.class);
if (trigger!=null) {
names.removeAll(GitHubRepositoryNameContributor.parseAssociatedNames(job));

0 comments on commit 2a49bac

Please sign in to comment.
You can’t perform that action at this time.