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>
This is the entry point for the caching capability when used as a build wrapper.
- Author:
- Peter Hayes
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class jenkins.tasks.SimpleBuildWrapper
SimpleBuildWrapper.Context, SimpleBuildWrapper.DisposerNested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.EnvironmentNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanItemStorage<?>voidvoidsetDefaultBranch(String defaultBranch) voidsetMaxCacheSize(Long maxCacheSize) voidsetSkipRestore(boolean skipRestore) voidsetSkipSave(boolean skipSave) voidsetUp(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, setUpMethods inherited from class hudson.tasks.BuildWrapper
all, getProjectAction, setUpMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
CacheWrapper
-
-
Method Details
-
getStorage
-
getMaxCacheSize
-
setMaxCacheSize
-
getSkipSave
public boolean getSkipSave() -
setSkipSave
@DataBoundSetter public void setSkipSave(boolean skipSave) -
getSkipRestore
public boolean getSkipRestore() -
setSkipRestore
@DataBoundSetter public void setSkipRestore(boolean skipRestore) -
getDefaultBranch
-
setDefaultBranch
-
getCaches
-
setCaches
-
setUp
public void setUp(SimpleBuildWrapper.Context context, Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) throws IOException, InterruptedException- Overrides:
setUpin classSimpleBuildWrapper- Throws:
IOExceptionInterruptedException
-