Package jenkins.plugins.jobcacher
Class CacheManager
java.lang.Object
jenkins.plugins.jobcacher.CacheManager
- Author:
- Peter Hayes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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, String defaultBranch) Internal method only
-
Constructor Details
-
CacheManager
public CacheManager()
-
-
Method Details
-
getCachePath
-
getCachePath
-
getCachePathForBranch
-
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, InterruptedExceptionInternal 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, String defaultBranch) throws IOException, InterruptedExceptionInternal method only- Throws:
IOException
InterruptedException
-