Enum CleanupLevel

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CleanupLevel>

    public enum CleanupLevel
    extends java.lang.Enum<CleanupLevel>
    Specifies what data should be cleaned by a cleanup rule.
    • Field Detail

      • SORTED_LEVELS

        public static final java.util.List<CleanupLevel> SORTED_LEVELS
    • Method Detail

      • values

        public static CleanupLevel[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CleanupLevel c : CleanupLevel.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CleanupLevel valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isCleanStatistics

        public boolean isCleanStatistics()
        Returns true if statistics data should be cleaned.
      • isCleanHistoryEntry

        public boolean isCleanHistoryEntry()
        Returns true if build history should be cleaned.
      • isCleanArtifacts

        @Deprecated
        public boolean isCleanArtifacts()
        Deprecated.
        Always returns true: build artifacts should be cleaned with any cleanup level.
      • getDescription

        @NotNull
        public java.lang.String getDescription()
        Returns cleanup short string representation to show in UI.
      • getKeepDescription

        @NotNull
        public java.lang.String getKeepDescription()
        Returns keep string representation to show in UI.