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 Modifier and Type Class Description static class
CacheStep.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Cache>
getCaches()
String
getDefaultBranch()
Long
getMaxCacheSize()
boolean
getSkipRestore()
boolean
getSkipSave()
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)
-
-
-
Method Detail
-
setDefaultBranch
@DataBoundSetter public void setDefaultBranch(String defaultBranch)
-
getDefaultBranch
public String getDefaultBranch()
-
setMaxCacheSize
@DataBoundSetter public void setMaxCacheSize(Long maxCacheSize)
-
getMaxCacheSize
public Long getMaxCacheSize()
-
setSkipSave
@DataBoundSetter public void setSkipSave(boolean skipSave)
-
getSkipSave
public boolean getSkipSave()
-
setSkipRestore
@DataBoundSetter public void setSkipRestore(boolean skipRestore)
-
getSkipRestore
public boolean getSkipRestore()
-
-