Class 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
  • Field Details

  • Constructor Details

    • WsCleanup

      @DataBoundConstructor public WsCleanup()
  • Method Details

    • setPatterns

      @DataBoundSetter public void setPatterns(List<Pattern> patterns)
    • setDeleteDirs

      @DataBoundSetter public void setDeleteDirs(boolean deleteDirs)
    • setSkipWhenFailed

      @Deprecated @DataBoundSetter public void setSkipWhenFailed(boolean skipWhenFailed)
      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

      @DataBoundSetter public void setExternalDelete(String externalDelete)
    • setDisableDeferredWipeout

      @DataBoundSetter public void setDisableDeferredWipeout(boolean disableDeferredWipeout)
    • readResolve

      public Object readResolve()
    • getPatterns

      public List<Pattern> getPatterns()
    • getDeleteDirs

      public boolean getDeleteDirs()
    • getNotFailBuild

      public boolean getNotFailBuild()
    • isSkipWhenFailed

      @Deprecated public boolean 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

      public String 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 interface SimpleBuildStep
      Throws:
      IOException
    • createAggregator

      public hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build, Launcher launcher, BuildListener listener)
      Specified by:
      createAggregator in interface hudson.matrix.MatrixAggregatable
    • getRequiredMonitorService

      public BuildStepMonitor getRequiredMonitorService()
      Specified by:
      getRequiredMonitorService in interface BuildStep
    • needsToRunAfterFinalized

      public boolean needsToRunAfterFinalized()
      Overrides:
      needsToRunAfterFinalized in class Publisher
    • isMatrixProject

      public boolean isMatrixProject(Object o)