Package hudson.plugins.ws_cleanup
Class WsCleanup
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
hudson.plugins.ws_cleanup.WsCleanup
- All Implemented Interfaces:
ExtensionPoint
,hudson.matrix.MatrixAggregatable
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
public class WsCleanup
extends Notifier
implements hudson.matrix.MatrixAggregatable, SimpleBuildStep
Clean workspace after the build is done.
- Author:
- dvrzalik
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionhudson.matrix.MatrixAggregator
createAggregator
(hudson.matrix.MatrixBuild build, Launcher launcher, BuildListener listener) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Deprecated.boolean
void
perform
(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) void
setCleanupMatrixParent
(boolean cleanupMatrixParent) void
setCleanWhenAborted
(boolean cleanWhenAborted) void
setCleanWhenFailure
(boolean cleanWhenFailure) void
setCleanWhenNotBuilt
(boolean cleanWhenNotBuilt) void
setCleanWhenSuccess
(boolean cleanWhenSuccess) void
setCleanWhenUnstable
(boolean cleanWhenUnstable) void
setDeleteDirs
(boolean deleteDirs) void
setDisableDeferredWipeout
(boolean disableDeferredWipeout) void
setExternalDelete
(String externalDelete) void
setNotFailBuild
(boolean notFailBuild) void
setPatterns
(List<Pattern> patterns) void
setSkipWhenFailed
(boolean skipWhenFailed) Deprecated.Methods inherited from class hudson.tasks.Notifier
getDescriptor
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuild
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuild
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Field Details
-
LOG_PREFIX
- See Also:
-
-
Constructor Details
-
WsCleanup
@DataBoundConstructor public WsCleanup()
-
-
Method Details
-
setPatterns
-
setDeleteDirs
@DataBoundSetter public void setDeleteDirs(boolean deleteDirs) -
setSkipWhenFailed
Deprecated. -
setCleanWhenSuccess
@DataBoundSetter public void setCleanWhenSuccess(boolean cleanWhenSuccess) -
setCleanWhenUnstable
@DataBoundSetter public void setCleanWhenUnstable(boolean cleanWhenUnstable) -
setCleanWhenFailure
@DataBoundSetter public void setCleanWhenFailure(boolean cleanWhenFailure) -
setCleanWhenNotBuilt
@DataBoundSetter public void setCleanWhenNotBuilt(boolean cleanWhenNotBuilt) -
setCleanWhenAborted
@DataBoundSetter public void setCleanWhenAborted(boolean cleanWhenAborted) -
setNotFailBuild
@DataBoundSetter public void setNotFailBuild(boolean notFailBuild) -
setCleanupMatrixParent
@DataBoundSetter public void setCleanupMatrixParent(boolean cleanupMatrixParent) -
setExternalDelete
-
setDisableDeferredWipeout
@DataBoundSetter public void setDisableDeferredWipeout(boolean disableDeferredWipeout) -
readResolve
-
getPatterns
-
getDeleteDirs
public boolean getDeleteDirs() -
getNotFailBuild
public boolean getNotFailBuild() -
isSkipWhenFailed
Deprecated. -
isCleanWhenSuccess
public boolean isCleanWhenSuccess() -
isCleanWhenUnstable
public boolean isCleanWhenUnstable() -
isCleanWhenFailure
public boolean isCleanWhenFailure() -
isCleanWhenNotBuilt
public boolean isCleanWhenNotBuilt() -
isCleanWhenAborted
public boolean isCleanWhenAborted() -
getCleanupMatrixParent
public boolean getCleanupMatrixParent() -
getExternalDelete
-
isDisableDeferredWipeout
public boolean isDisableDeferredWipeout() -
perform
public void perform(@NonNull Run<?, ?> build, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener) throws IOException- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
IOException
-
createAggregator
public hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build, Launcher launcher, BuildListener listener) - Specified by:
createAggregator
in interfacehudson.matrix.MatrixAggregatable
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
needsToRunAfterFinalized
public boolean needsToRunAfterFinalized()- Overrides:
needsToRunAfterFinalized
in classPublisher
-
isMatrixProject
-