Package jenkins.triggers
Interface SCMTriggerItem
-
- All Known Implementing Classes:
FreeStyleProject
,Project
public interface SCMTriggerItem
The item type accepted bySCMTrigger
.- Since:
- 1.568
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SCMTriggerItem.SCMTriggerItems
Utilities.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Item
asItem()
Should bethis
.int
getNextBuildNumber()
int
getQuietPeriod()
Collection<? extends SCM>
getSCMs()
Obtains all active SCMs.SCMTrigger
getSCMTrigger()
PollingResult
poll(TaskListener listener)
Checks if there is any update in SCM.QueueTaskFuture<?>
scheduleBuild2(int quietPeriod, Action... actions)
default boolean
schedulePolling()
Schedules a polling of this project.
-
-
-
Method Detail
-
asItem
Item asItem()
Should bethis
.
-
getNextBuildNumber
int getNextBuildNumber()
- See Also:
Job.getNextBuildNumber()
-
getQuietPeriod
int getQuietPeriod()
-
scheduleBuild2
@CheckForNull QueueTaskFuture<?> scheduleBuild2(int quietPeriod, Action... actions)
-
poll
@NonNull PollingResult poll(@NonNull TaskListener listener)
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
@CheckForNull SCMTrigger getSCMTrigger()
-
getSCMs
@NonNull Collection<? extends SCM> 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.
-
-