Enum Class SourceCodeRetention

java.lang.Object
java.lang.Enum<SourceCodeRetention>
io.jenkins.plugins.prism.SourceCodeRetention
All Implemented Interfaces:
Serializable, Comparable<SourceCodeRetention>, Constable

public enum SourceCodeRetention extends Enum<SourceCodeRetention>
Defines the retention strategy for source code files.
  • Enum Constant Details

    • NEVER

      public static final SourceCodeRetention NEVER
      Never store source code files.
    • LAST_BUILD

      public static final SourceCodeRetention LAST_BUILD
      Store source code files of the last build, delete older artifacts.
    • EVERY_BUILD

      public static final SourceCodeRetention EVERY_BUILD
      Store source code files for all builds, never delete those files automatically.
    • MODIFIED

      public static final SourceCodeRetention MODIFIED
      Store only changed source code files for all builds, never delete those files automatically.
  • Method Details

    • values

      public static SourceCodeRetention[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SourceCodeRetention valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fillItems

      public static ListBoxModel fillItems()
      Returns all available SourceCodeRetention strategies as a ListBoxModel.
      Returns:
      all strategies
    • getDisplayName

      public String getDisplayName()
    • cleanup

      public void cleanup(Run<?,?> build, String directory, edu.hm.hafner.util.FilteredLog log)
      Cleanup the stored source code files of previous builds.
      Parameters:
      build - starting with this build, all previous builds will be scanned for source code files that can be deleted
      directory - the directory, where the source code files are stored within each build
      log - logger