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 forItem
instances.- 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 registeredSCMDecisionHandler
sstatic SCMDecisionHandler
firstShouldPollVeto(Item item)
static List<SCMDecisionHandler>
listShouldPollVetos(Item item)
abstract boolean
shouldPoll(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, theItem
will not be polled.- Parameters:
item
- The item.
-
all
@NonNull public static ExtensionList<SCMDecisionHandler> all()
All registeredSCMDecisionHandler
s
-
firstShouldPollVeto
@CheckForNull public static SCMDecisionHandler firstShouldPollVeto(@NonNull Item item)
- Parameters:
item
- the item- Returns:
- the first veto or
null
if there are no vetos
-
listShouldPollVetos
@NonNull public static List<SCMDecisionHandler> listShouldPollVetos(@NonNull Item item)
- Parameters:
item
- the item- Returns:
- the
SCMDecisionHandler
instances vetoing the polling of the specified item.
-
-