Package jenkins.scm
Class SCMDecisionHandler
java.lang.Object
jenkins.scm.SCMDecisionHandler
- All Implemented Interfaces:
ExtensionPoint
Extension point for various decisions about SCM operations for
Item
instances.- Since:
- 2.11
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
.
-
Constructor Details
-
SCMDecisionHandler
public SCMDecisionHandler()
-
-
Method Details
-
shouldPoll
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
All registeredSCMDecisionHandler
s -
firstShouldPollVeto
- Parameters:
item
- the item- Returns:
- the first veto or
null
if there are no vetos
-
listShouldPollVetos
- Parameters:
item
- the item- Returns:
- the
SCMDecisionHandler
instances vetoing the polling of the specified item.
-