Skip to content

Commit

Permalink
only expose our own RetentionStrategies (#364)
Browse files Browse the repository at this point in the history
next step will be to hide this all and manage cleanup internally
  • Loading branch information
ndeloof committed Oct 10, 2017
1 parent c88429f commit 373ee96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.nirima.jenkins.plugins.docker.strategy.DockerCloudRetentionStrategy;
import com.nirima.jenkins.plugins.docker.strategy.DockerOnceRetentionStrategy;
import hudson.model.Descriptor;
import hudson.slaves.CloudRetentionStrategy;
import hudson.slaves.ComputerLauncher;
import hudson.slaves.RetentionStrategy;
import jenkins.model.Jenkins;
Expand All @@ -30,7 +31,6 @@ public static List<Descriptor<RetentionStrategy<?>>> getDockerRetentionStrategyD

strategies.add(Jenkins.getActiveInstance().getDescriptor(DockerOnceRetentionStrategy.class));
strategies.add(Jenkins.getActiveInstance().getDescriptor(DockerCloudRetentionStrategy.class));
strategies.addAll(RetentionStrategy.all());

return strategies;
}
Expand Down

0 comments on commit 373ee96

Please sign in to comment.