Class CacheStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
jenkins.plugins.jobcacher.pipeline.CacheStep
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class CacheStep
extends org.jenkinsci.plugins.workflow.steps.Step
Wrapping workflow step that automatically seeds the specified path with the previous run and on exit of the
block, saves that cache to the configured item storage.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
setDefaultBranch
(String defaultBranch) void
setMaxCacheSize
(Long maxCacheSize) void
setSkipRestore
(boolean skipRestore) void
setSkipSave
(boolean skipSave) org.jenkinsci.plugins.workflow.steps.StepExecution
start
(org.jenkinsci.plugins.workflow.steps.StepContext context) Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
CacheStep
-
-
Method Details
-
setDefaultBranch
-
getDefaultBranch
-
setMaxCacheSize
-
getMaxCacheSize
-
setSkipSave
@DataBoundSetter public void setSkipSave(boolean skipSave) -
getSkipSave
public boolean getSkipSave() -
setSkipRestore
@DataBoundSetter public void setSkipRestore(boolean skipRestore) -
getSkipRestore
public boolean getSkipRestore() -
getCaches
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception - Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.Step
- Throws:
Exception
-