Package jenkins.plugins.jobcacher
Class CacheManager
- java.lang.Object
-
- jenkins.plugins.jobcacher.CacheManager
-
public class CacheManager extends Object
- Author:
- Peter Hayes
-
-
Constructor Summary
Constructors Constructor Description CacheManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Cache.Saver>
cache(ItemStorage<?> storage, Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment, List<Cache> caches, String defaultBranch, boolean skipRestore)
Internal method onlystatic ObjectPath
getCachePath(ItemStorage<?> storage, Job<?,?> job)
static ObjectPath
getCachePath(ItemStorage<?> storage, Run<?,?> run)
static ObjectPath
getCachePathForBranch(ItemStorage<?> storage, Run<?,?> run, String branch)
static void
save(ItemStorage<?> storage, Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener, Long maxCacheSize, List<Cache> caches, List<Cache.Saver> cacheSavers)
Internal method only
-
-
-
Method Detail
-
getCachePath
public static ObjectPath getCachePath(ItemStorage<?> storage, Job<?,?> job)
-
getCachePath
public static ObjectPath getCachePath(ItemStorage<?> storage, Run<?,?> run)
-
getCachePathForBranch
public static ObjectPath getCachePathForBranch(ItemStorage<?> storage, Run<?,?> run, String branch)
-
cache
public static List<Cache.Saver> cache(ItemStorage<?> storage, Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment, List<Cache> caches, String defaultBranch, boolean skipRestore) throws IOException, InterruptedException
Internal method only- Throws:
IOException
InterruptedException
-
save
public static void save(ItemStorage<?> storage, Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener, Long maxCacheSize, List<Cache> caches, List<Cache.Saver> cacheSavers) throws IOException, InterruptedException
Internal method only- Throws:
IOException
InterruptedException
-
-