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.ComponentCategoryNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum file size to pack is 2Mb.static final longMaximum age (in milliseconds) of log files we would bother including in a bundle. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContents(Container container, FileListCap fileListCap) Specify in whichComponent.ComponentCategorythe 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:ComponentReturns 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:
getRequiredPermissionsin 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:ComponentSpecify in whichComponent.ComponentCategorythe current component is related.- Overrides:
getCategoryin classComponent- Returns:
- An enum value of
Component.ComponentCategory.
-
addContents
-