Class AgentsConfigFile
java.lang.Object
com.cloudbees.jenkins.support.api.Component
com.cloudbees.jenkins.support.api.ObjectComponent<Computer>
com.cloudbees.jenkins.support.configfiles.AgentsConfigFile
- All Implemented Interfaces:
ExtensionPoint
,Describable<ObjectComponent<Computer>>
Adds nodes config.xml files to the bundle.
Any secret string is redacted in the xml file.
Unselected by default.
-
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addContents
(Container container) Add contents to a containervoid
addContents
(Container container, Computer item) Add contents from a specific item to a containerSpecify 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.boolean
isApplicable
(Computer item) Return if this component is applicable to a specific item.<C extends AbstractModelObject>
booleanisApplicable
(Class<C> clazz) Return if this component is applicable to a specific class of item.boolean
boolean
isSelectedByDefault
(Computer item) Control if the component should be selected by default, based on the applicable itemMethods inherited from class com.cloudbees.jenkins.support.api.ObjectComponent
allInstances, for_
Methods inherited from class com.cloudbees.jenkins.support.api.Component
getDisplayPermissions, getId, isEnabled, start
-
Constructor Details
-
AgentsConfigFile
@DataBoundConstructor public AgentsConfigFile()
-
-
Method Details
-
isSelectedByDefault
public boolean isSelectedByDefault()- Overrides:
isSelectedByDefault
in classComponent
-
isSelectedByDefault
Description copied from class:ObjectComponent
Control if the component should be selected by default, based on the applicable item- Overrides:
isSelectedByDefault
in classObjectComponent<Computer>
- Parameters:
item
- the item- Returns:
- true to select the component by default
-
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
.
-
getDisplayName
- Specified by:
getDisplayName
in classComponent
-
addContents
Description copied from class:ObjectComponent
Add contents to a container- Overrides:
addContents
in classObjectComponent<Computer>
- Parameters:
container
- aContainer
-
addContents
Description copied from class:ObjectComponent
Add contents from a specific item to a container- Specified by:
addContents
in classObjectComponent<Computer>
- Parameters:
container
- theContainer
item
- the item
-
isApplicable
Description copied from class:ObjectComponent
Return if this component is applicable to a specific class of item.- Overrides:
isApplicable
in classObjectComponent<Computer>
- Type Parameters:
C
- Object that extendsAbstractModelObject
- Parameters:
clazz
- the class- Returns:
true
if applicable to this class
-
isApplicable
Description copied from class:ObjectComponent
Return if this component is applicable to a specific item.- Overrides:
isApplicable
in classObjectComponent<Computer>
- Parameters:
item
- the item- Returns:
- true if applicable
-
getDescriptor
Description copied from class:ObjectComponent
- Specified by:
getDescriptor
in interfaceDescribable<ObjectComponent<Computer>>
- Overrides:
getDescriptor
in classObjectComponent<Computer>
-