Package jenkins.plugins.jobcacher
Class CacheWrapper
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<BuildWrapper>
-
- hudson.tasks.BuildWrapper
-
- jenkins.tasks.SimpleBuildWrapper
-
- jenkins.plugins.jobcacher.CacheWrapper
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<BuildWrapper>
public class CacheWrapper extends SimpleBuildWrapper
This is the entry point for the caching capability when used as a build wrapper.- Author:
- Peter Hayes
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CacheWrapper.DescriptorImpl
-
Nested classes/interfaces inherited from class jenkins.tasks.SimpleBuildWrapper
SimpleBuildWrapper.Context, SimpleBuildWrapper.Disposer
-
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.Environment
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description CacheWrapper(List<Cache> caches)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Cache>
getCaches()
String
getDefaultBranch()
Long
getMaxCacheSize()
boolean
getSkipRestore()
boolean
getSkipSave()
ItemStorage<?>
getStorage()
void
setCaches(List<Cache> caches)
void
setDefaultBranch(String defaultBranch)
void
setMaxCacheSize(Long maxCacheSize)
void
setSkipRestore(boolean skipRestore)
void
setSkipSave(boolean skipSave)
void
setUp(SimpleBuildWrapper.Context context, Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment)
-
Methods inherited from class jenkins.tasks.SimpleBuildWrapper
createContext, createLoggerDecorator, decorateLauncher, decorateLogger, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, requiresWorkspace, runPreCheckout, setUp, setUp
-
Methods inherited from class hudson.tasks.BuildWrapper
all, getProjectAction, setUp
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
getStorage
public ItemStorage<?> getStorage()
-
getMaxCacheSize
public Long getMaxCacheSize()
-
setMaxCacheSize
@DataBoundSetter public void setMaxCacheSize(Long maxCacheSize)
-
getSkipSave
public boolean getSkipSave()
-
setSkipSave
@DataBoundSetter public void setSkipSave(boolean skipSave)
-
getSkipRestore
public boolean getSkipRestore()
-
setSkipRestore
@DataBoundSetter public void setSkipRestore(boolean skipRestore)
-
getDefaultBranch
public String getDefaultBranch()
-
setDefaultBranch
@DataBoundSetter public void setDefaultBranch(String defaultBranch)
-
setUp
public void setUp(SimpleBuildWrapper.Context context, Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) throws IOException, InterruptedException
- Overrides:
setUp
in classSimpleBuildWrapper
- Throws:
IOException
InterruptedException
-
-