Class StashManager.StashBehavior

java.lang.Object
org.jenkinsci.plugins.workflow.flow.StashManager.StashBehavior
All Implemented Interfaces:
ExtensionPoint
Enclosing class:
StashManager

public abstract static class StashManager.StashBehavior extends Object implements ExtensionPoint
Extension point for customizing behavior of stashes from other plugins.
  • Constructor Details

    • StashBehavior

      public StashBehavior()
  • Method Details

    • shouldClearAll

      public boolean shouldClearAll(@NonNull Run<?,?> build)
      Allows the normal clearing behavior to be suppressed.
      Parameters:
      build - a build which has finished
      Returns:
      true (the default) to go ahead and call StashManager.clearAll(hudson.model.Run<?, ?>), false to stop