Package jenkins.branch
Class OrganizationChildTriggersProperty
java.lang.Object
hudson.model.AbstractDescribableImpl<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<C>
jenkins.branch.OrganizationFolderProperty<OrganizationFolder>
jenkins.branch.OrganizationChildTriggersProperty
- All Implemented Interfaces:
ExtensionPoint
,Describable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
,ReconfigurableDescribable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
public class OrganizationChildTriggersProperty
extends OrganizationFolderProperty<OrganizationFolder>
- Since:
- 2.4.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Our descriptor.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
owner
-
Constructor Summary
ConstructorDescriptionOrganizationChildTriggersProperty
(Trigger<?>... templates) Our constructor.OrganizationChildTriggersProperty
(List<Trigger<?>> templates) Our constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
decorate
(MultiBranchProject<?, ?> child, TaskListener listener) SPI for performing an idempotent application of this property's decoration to the supplied child.Gets the current template triggers.Creates a new default instance of this property.Methods inherited from class jenkins.branch.OrganizationFolderProperty
applyDecoration, getDescriptor
Methods inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
getHealthMetrics, getHealthReports, getItemContainerOverrides, getOwner, reconfigure, setOwner
-
Constructor Details
-
OrganizationChildTriggersProperty
Our constructor.- Parameters:
templates
- the templates.
-
OrganizationChildTriggersProperty
Our constructor.- Parameters:
templates
- the templates.
-
-
Method Details
-
newDefaultInstance
Creates a new default instance of this property.- Returns:
- a new default instance of this property.
-
getTemplates
Gets the current template triggers.- Returns:
- the current template triggers.
-
decorate
protected void decorate(@NonNull MultiBranchProject<?, ?> child, @NonNull TaskListener listener) throws IOExceptionSPI for performing an idempotent application of this property's decoration to the supplied child. If the child is already correctly decorated then the child must be unchanged.- Specified by:
decorate
in classOrganizationFolderProperty<OrganizationFolder>
- Parameters:
child
- the child to decorate.listener
- a listener to log any commentary to.- Throws:
IOException
- as a convenience to implementations as some of the expected changes may call methods that could throw this but shouldn't because of the API's requirement that aBulkChange
contains the child.
-