Package jetbrains.buildServer.serverSide
Enum CleanupLevel
- java.lang.Object
-
- java.lang.Enum<CleanupLevel>
-
- jetbrains.buildServer.serverSide.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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARTIFACTS
EVERYTHING
HISTORY_ENTRY
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<CleanupLevel>
SORTED_LEVELS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getDescription()
Returns cleanup short string representation to show in UI.java.lang.String
getKeepDescription()
Returns keep string representation to show in UI.boolean
isCleanArtifacts()
Deprecated.boolean
isCleanHistoryEntry()
Returns true if build history should be cleaned.boolean
isCleanStatistics()
Returns true if statistics data should be cleaned.static CleanupLevel
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CleanupLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EVERYTHING
public static final CleanupLevel EVERYTHING
-
HISTORY_ENTRY
public static final CleanupLevel HISTORY_ENTRY
-
ARTIFACTS
public static final CleanupLevel ARTIFACTS
-
-
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 namejava.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.
-
-