Package io.jenkins.plugins.prism
Enum Class SourceCodeRetention
- All Implemented Interfaces:
Serializable
,Comparable<SourceCodeRetention>
,Constable
Defines the retention strategy for source code files.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStore source code files for all builds, never delete those files automatically.Store source code files of the last build, delete older artifacts.Store only changed source code files for all builds, never delete those files automatically.Never store source code files. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Cleanup the stored source code files of previous builds.static ListBoxModel
Returns all availableSourceCodeRetention
strategies as aListBoxModel
.static SourceCodeRetention
Returns the enum constant of this class with the specified name.static SourceCodeRetention[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER
Never store source code files. -
LAST_BUILD
Store source code files of the last build, delete older artifacts. -
EVERY_BUILD
Store source code files for all builds, never delete those files automatically. -
MODIFIED
Store only changed source code files for all builds, never delete those files automatically.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
fillItems
Returns all availableSourceCodeRetention
strategies as aListBoxModel
.- Returns:
- all strategies
-
getDisplayName
-
cleanup
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 deleteddirectory
- the directory, where the source code files are stored within each buildlog
- logger
-