Class RepositoryPollingTrigger
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.trigger.Trigger<T,P>
com.atlassian.bamboo.specs.api.builders.trigger.RepositoryBasedTrigger<RepositoryPollingTrigger,RepositoryPollingTriggerProperties>
com.atlassian.bamboo.specs.builders.trigger.RepositoryPollingTrigger
public class RepositoryPollingTrigger
extends RepositoryBasedTrigger<RepositoryPollingTrigger,RepositoryPollingTriggerProperties>
Represents repository polling trigger.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.bamboo.specs.api.builders.trigger.RepositoryBasedTrigger
RepositoryBasedTrigger.TriggeringRepositoriesType
-
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.api.builders.trigger.RepositoryBasedTrigger
selectedTriggeringRepositories, triggeringRepositoriesType
Fields inherited from class com.atlassian.bamboo.specs.api.builders.trigger.Trigger
conditions, description, name, triggerEnabled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected RepositoryPollingTriggerProperties
build()
Specifies how often (inTimeUnit
) Bamboo should check the repository for changes.pollMonthly
(@NotNull LocalTime at, int dayOfMonth) Orders Bamboo to check repository for changes once monthly at specified day of month and time.pollOnceDaily
(@NotNull LocalTime at) Orders Bamboo to check repository for changes once daily at specified time.pollWeekly
(@NotNull LocalTime at, @NotNull Collection<DayOfWeek> days) Orders Bamboo to check repository for changes weekly at specified days of week and time.pollWeekly
(@NotNull LocalTime at, DayOfWeek... onDays) Orders Bamboo to check repository for changes weekly at specified days of week and time.pollWithCronExpression
(@NotNull String cronExpression) Orders Bamboo to check repository for changes based on given cron expression.withPollingPeriod
(@NotNull Duration duration) Specifies time interval between checks for changes in the repositories.Selects polling type for this trigger.Methods inherited from class com.atlassian.bamboo.specs.api.builders.trigger.RepositoryBasedTrigger
allAvailableTriggeringRepositories, selectedTriggeringRepositories, triggeringRepositoriesType
Methods inherited from class com.atlassian.bamboo.specs.api.builders.trigger.Trigger
conditions, description, enabled, name
-
Constructor Details
-
RepositoryPollingTrigger
public RepositoryPollingTrigger()Creates repository polling trigger.
-
-
Method Details
-
pollEvery
Specifies how often (inTimeUnit
) Bamboo should check the repository for changes. Time units smaller thanTimeUnit.SECONDS
won't be accepted. Default value is 180 seconds.- See Also:
-
withPollingPeriod
Specifies time interval between checks for changes in the repositories. Duration smaller than a second won't be accepted. Default value is 180 seconds.- See Also:
-
withPollType
public RepositoryPollingTrigger withPollType(@NotNull RepositoryPollingTriggerProperties.PollType pollType) Selects polling type for this trigger. Possible values:- PERIOD
- Poll in defined intervals.
- CRON
- Poll according to cron expression.
-
pollOnceDaily
Orders Bamboo to check repository for changes once daily at specified time. -
pollWeekly
Orders Bamboo to check repository for changes weekly at specified days of week and time. -
pollWeekly
public RepositoryPollingTrigger pollWeekly(@NotNull @NotNull LocalTime at, @NotNull @NotNull Collection<DayOfWeek> days) Orders Bamboo to check repository for changes weekly at specified days of week and time. -
pollMonthly
Orders Bamboo to check repository for changes once monthly at specified day of month and time. -
pollWithCronExpression
Orders Bamboo to check repository for changes based on given cron expression. -
build
- Specified by:
build
in classTrigger<RepositoryPollingTrigger,
RepositoryPollingTriggerProperties>
-