Package jenkins.triggers
Interface SCMTriggerItem
- All Known Implementing Classes:
FreeStyleProject
,Project
public interface SCMTriggerItem
The item type accepted by
SCMTrigger
.- Since:
- 1.568
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionasItem()
Should bethis
.int
int
Collection<? extends SCM>
getSCMs()
Obtains all active SCMs.poll
(TaskListener listener) Checks if there is any update in SCM.scheduleBuild2
(int quietPeriod, Action... actions) default boolean
Schedules a polling of this project.
-
Method Details
-
asItem
Item asItem()Should bethis
. -
getNextBuildNumber
int getNextBuildNumber()- See Also:
-
getQuietPeriod
int getQuietPeriod() -
scheduleBuild2
-
poll
Checks if there is any update in SCM.The implementation is responsible for ensuring mutual exclusion between polling and builds if necessary.
The implementation is responsible for checking the
SCMDecisionHandler
before proceeding with the actual polling. -
getSCMTrigger
-
getSCMs
Obtains all active SCMs. May be used for informational purposes, or to determine whether to initiate polling.- Returns:
- a possibly empty collection
-
schedulePolling
default boolean schedulePolling()Schedules a polling of this project.
-