Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #61 from recena/JENKINS-33819
[JENKINS-33819] New API to set the OrphanedItemStrategy field
  • Loading branch information
recena committed May 12, 2016
2 parents adf523e + b4f2bff commit 47b0815
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -75,7 +75,6 @@
import org.apache.commons.io.FileUtils;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.DoNotUse;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import org.kohsuke.stapler.HttpResponse;
import org.kohsuke.stapler.HttpResponses;
import org.kohsuke.stapler.QueryParameter;
Expand All @@ -95,7 +94,7 @@ public abstract class ComputedFolder<I extends TopLevelItem> extends AbstractFol

private static final Logger LOGGER = Logger.getLogger(ComputedFolder.class.getName());

private /*almost final*/ OrphanedItemStrategy orphanedItemStrategy;
private OrphanedItemStrategy orphanedItemStrategy;

private DescribableList<Trigger<?>,TriggerDescriptor> triggers;
// TODO p:config-triggers also expects there to be a BuildAuthorizationToken authToken option. Do we want one?
Expand Down Expand Up @@ -143,6 +142,10 @@ protected Collection<I> orphanedItems(Collection<I> orphaned, TaskListener liste
return getOrphanedItemStrategy().orphanedItems(this, orphaned, listener);
}

public void setOrphanedItemStrategy(@Nonnull OrphanedItemStrategy strategy) {
this.orphanedItemStrategy = strategy;
}

/**
* Recreates children synchronously.
*/
Expand Down

0 comments on commit 47b0815

Please sign in to comment.