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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionasItem()Should bethis.intintCollection<? extends SCM> getSCMs()Obtains all active SCMs.poll(TaskListener listener) Checks if there is any update in SCM.scheduleBuild2(int quietPeriod, Action... actions) default booleanSchedules a polling of this project.
-
Method Details
-
asItem
Item asItem()Should bethis. -
getNextBuildNumber
int getNextBuildNumber()- See Also:
-
getQuietPeriod
int getQuietPeriod()- See Also:
-
scheduleBuild2
- See Also:
-
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
SCMDecisionHandlerbefore 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.
-