Package jenkins.scm
Class SCMDecisionHandler
- java.lang.Object
-
- jenkins.scm.SCMDecisionHandler
-
- All Implemented Interfaces:
ExtensionPoint
public abstract class SCMDecisionHandler extends Object implements ExtensionPoint
Extension point for various decisions about SCM operations forIteminstances.- Since:
- 2.11
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description SCMDecisionHandler()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ExtensionList<SCMDecisionHandler>all()All registeredSCMDecisionHandlersstatic SCMDecisionHandlerfirstShouldPollVeto(Item item)static List<SCMDecisionHandler>listShouldPollVetos(Item item)abstract booleanshouldPoll(Item item)This handler is consulted every time someone tries to run a polling of anItem.
-
-
-
Method Detail
-
shouldPoll
public abstract boolean shouldPoll(@NonNull Item item)This handler is consulted every time someone tries to run a polling of anItem. If any of the registered handlers returns false, theItemwill not be polled.- Parameters:
item- The item.
-
all
@NonNull public static ExtensionList<SCMDecisionHandler> all()
All registeredSCMDecisionHandlers
-
firstShouldPollVeto
@CheckForNull public static SCMDecisionHandler firstShouldPollVeto(@NonNull Item item)
- Parameters:
item- the item- Returns:
- the first veto or
nullif there are no vetos
-
listShouldPollVetos
@NonNull public static List<SCMDecisionHandler> listShouldPollVetos(@NonNull Item item)
- Parameters:
item- the item- Returns:
- the
SCMDecisionHandlerinstances vetoing the polling of the specified item.
-
-