Class FileListCapComponent
java.lang.Object
com.cloudbees.jenkins.support.api.Component
com.cloudbees.jenkins.support.timer.FileListCapComponent
- All Implemented Interfaces:
ExtensionPoint
Component
that attaches files inside FileListCap
into a support bundle.- Author:
- stevenchristou
-
Nested Class Summary
Nested classes/interfaces inherited from class com.cloudbees.jenkins.support.api.Component
Component.ComponentCategory
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Maximum file size to pack is 2Mb.static final long
Maximum age (in milliseconds) of log files we would bother including in a bundle. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContents
(Container container, FileListCap fileListCap) Specify in whichComponent.ComponentCategory
the current component is related.Returns the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle.Methods inherited from class com.cloudbees.jenkins.support.api.Component
addContents, canBeGeneratedAsync, getDisplayName, getDisplayPermissions, getId, isApplicable, isEnabled, isSelectedByDefault, start, supersedes
-
Field Details
-
MAX_FILE_SIZE
public static final int MAX_FILE_SIZEMaximum file size to pack is 2Mb.- See Also:
-
MAX_LOG_FILE_AGE_MS
public static final long MAX_LOG_FILE_AGE_MSMaximum age (in milliseconds) of log files we would bother including in a bundle. Anything older is likely no longer relevant.
-
-
Constructor Details
-
FileListCapComponent
public FileListCapComponent()
-
-
Method Details
-
getRequiredPermissions
Description copied from class:Component
Returns the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle. An empty list indicates that any user can include this bundle.- Specified by:
getRequiredPermissions
in classComponent
- Returns:
- the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle.
-
getCategory
Description copied from class:Component
Specify in whichComponent.ComponentCategory
the current component is related.- Overrides:
getCategory
in classComponent
- Returns:
- An enum value of
Component.ComponentCategory
.
-
addContents
-