Class PendingApprovalAction.ApprovalItemListener
java.lang.Object
hudson.model.listeners.ItemListener
io.jenkins.plugins.github_pr_approval.PendingApprovalAction.ApprovalItemListener
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
PendingApprovalAction
Puts a newly discovered fork pull request on hold, and catches the jobs that were already
there when the trust policy got switched on.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidonLoaded()Nothing carries the disabled flag across a restart on its own — branch indexing rewrites the branch job's config as it goes — so once everything is loaded, put every held pull request back to what its approval record says.voidMethods inherited from class ItemListener
all, checkBeforeCopy, checkBeforeDelete, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onCheckDelete, onCopied, onDeleted, onLocationChanged, onRenamed, register
-
Constructor Details
-
ApprovalItemListener
public ApprovalItemListener()
-
-
Method Details
-
onCreated
- Overrides:
onCreatedin classItemListener
-
onLoaded
public void onLoaded()Nothing carries the disabled flag across a restart on its own — branch indexing rewrites the branch job's config as it goes — so once everything is loaded, put every held pull request back to what its approval record says. Only reads records that already exist, so this never calls GitHub while Jenkins is still starting.- Overrides:
onLoadedin classItemListener
-
onUpdated
- Overrides:
onUpdatedin classItemListener
-