public class ScheduledTrigger extends Trigger<ScheduledTrigger,ScheduledTriggerProperties>
conditions, description, name, triggerEnabled
Constructor and Description |
---|
ScheduledTrigger()
Creates trigger which will schedule a build basing on a cron expression.
|
Modifier and Type | Method and Description |
---|---|
protected ScheduledTriggerProperties |
build() |
ScheduledTrigger |
cronExpression(String cronExpression)
Schedules build execution according to the cron expression.
|
ScheduledTrigger |
scheduleEvery(int every,
TimeUnit at)
|
ScheduledTrigger |
scheduleMonthly(LocalTime at,
int dayOfMonth)
Schedules build execution to every month on specified day of month and time.
|
ScheduledTrigger |
scheduleOnceDaily(LocalTime at)
Schedules build execution to every day at specified time.
|
ScheduledTrigger |
scheduleWeekly(LocalTime at,
Collection<DayOfWeek> days)
Schedules build execution to every week on specified week days and time.
|
ScheduledTrigger |
scheduleWeekly(LocalTime at,
DayOfWeek... onDays)
Schedules build execution to every week on specified week days at specified time.
|
conditions, description, enabled, name
public ScheduledTrigger() throws PropertiesValidationException
PropertiesValidationException
public ScheduledTrigger scheduleEvery(int every, @NotNull TimeUnit at)
public ScheduledTrigger scheduleOnceDaily(@NotNull LocalTime at)
public ScheduledTrigger scheduleWeekly(@NotNull LocalTime at, DayOfWeek... onDays)
public ScheduledTrigger scheduleWeekly(@NotNull LocalTime at, @NotNull Collection<DayOfWeek> days)
public ScheduledTrigger scheduleMonthly(@NotNull LocalTime at, int dayOfMonth)
public ScheduledTrigger cronExpression(@NotNull String cronExpression)
Cron expression won't be properly validated until sent out to Bamboo.
protected ScheduledTriggerProperties build()
build
in class Trigger<ScheduledTrigger,ScheduledTriggerProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.