public class RepositoryPollingTrigger extends RepositoryBasedTrigger<RepositoryPollingTrigger,RepositoryPollingTriggerProperties>
RepositoryBasedTrigger.TriggeringRepositoriesType
selectedTriggeringRepositories, triggeringRepositoriesType
conditions, description, name, triggerEnabled
Constructor and Description |
---|
RepositoryPollingTrigger()
Creates repository polling trigger.
|
Modifier and Type | Method and Description |
---|---|
protected RepositoryPollingTriggerProperties |
build() |
RepositoryPollingTrigger |
pollEvery(int every,
TimeUnit timeUnit)
Specifies how often (in
TimeUnit ) Bamboo should check the repository for changes. |
RepositoryPollingTrigger |
pollMonthly(LocalTime at,
int dayOfMonth)
Orders Bamboo to check repository for changes once monthly at specified day of month and time.
|
RepositoryPollingTrigger |
pollOnceDaily(LocalTime at)
Orders Bamboo to check repository for changes once daily at specified time.
|
RepositoryPollingTrigger |
pollWeekly(LocalTime at,
Collection<DayOfWeek> days)
Orders Bamboo to check repository for changes weekly at specified days of week and time.
|
RepositoryPollingTrigger |
pollWeekly(LocalTime at,
DayOfWeek... onDays)
Orders Bamboo to check repository for changes weekly at specified days of week and time.
|
RepositoryPollingTrigger |
pollWithCronExpression(String cronExpression)
Orders Bamboo to check repository for changes based on given cron expression.
|
RepositoryPollingTrigger |
withPollingPeriod(Duration duration)
Specifies time interval between checks for changes in the repositories.
|
RepositoryPollingTrigger |
withPollType(RepositoryPollingTriggerProperties.PollType pollType)
Selects polling type for this trigger.
|
allAvailableTriggeringRepositories, selectedTriggeringRepositories, triggeringRepositoriesType
conditions, description, enabled, name
public RepositoryPollingTrigger()
public RepositoryPollingTrigger pollEvery(int every, @NotNull TimeUnit timeUnit)
TimeUnit
) Bamboo should check the repository for changes.
Time units smaller than TimeUnit.SECONDS
won't be accepted.
Default value is 180 seconds.withPollingPeriod(Duration)
public RepositoryPollingTrigger withPollingPeriod(@NotNull Duration duration)
pollEvery(int, TimeUnit)
public RepositoryPollingTrigger withPollType(@NotNull RepositoryPollingTriggerProperties.PollType pollType)
public RepositoryPollingTrigger pollOnceDaily(@NotNull LocalTime at)
public RepositoryPollingTrigger pollWeekly(@NotNull LocalTime at, DayOfWeek... onDays)
public RepositoryPollingTrigger pollWeekly(@NotNull LocalTime at, @NotNull Collection<DayOfWeek> days)
public RepositoryPollingTrigger pollMonthly(@NotNull LocalTime at, int dayOfMonth)
public RepositoryPollingTrigger pollWithCronExpression(@NotNull String cronExpression)
protected RepositoryPollingTriggerProperties build()
build
in class Trigger<RepositoryPollingTrigger,RepositoryPollingTriggerProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.