Class ScheduledTrigger
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.trigger.Trigger<ScheduledTrigger,ScheduledTriggerProperties>
com.atlassian.bamboo.specs.builders.trigger.ScheduledTrigger
Represents a Scheduled trigger.
-
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.api.builders.trigger.Trigger
conditions, description, name, triggerEnabled
-
Constructor Summary
ConstructorDescriptionCreates trigger which will schedule a build basing on a cron expression. -
Method Summary
Modifier and TypeMethodDescriptionprotected ScheduledTriggerProperties
build()
cronExpression
(@NotNull String cronExpression) Schedules build execution according to the cron expression.scheduleEvery
(int every, @NotNull TimeUnit at) scheduleMonthly
(@NotNull LocalTime at, int dayOfMonth) Schedules build execution to every month on specified day of month and time.scheduleOnceDaily
(@NotNull LocalTime at) Schedules build execution to every day at specified time.scheduleWeekly
(@NotNull LocalTime at, @NotNull Collection<DayOfWeek> days) Schedules build execution to every week on specified week days and time.scheduleWeekly
(@NotNull LocalTime at, DayOfWeek... onDays) Schedules build execution to every week on specified week days at specified time.Methods inherited from class com.atlassian.bamboo.specs.api.builders.trigger.Trigger
conditions, description, enabled, name
-
Constructor Details
-
ScheduledTrigger
Creates trigger which will schedule a build basing on a cron expression.- Throws:
PropertiesValidationException
-
-
Method Details
-
scheduleEvery
-
scheduleOnceDaily
Schedules build execution to every day at specified time. -
scheduleWeekly
Schedules build execution to every week on specified week days at specified time. -
scheduleWeekly
public ScheduledTrigger scheduleWeekly(@NotNull @NotNull LocalTime at, @NotNull @NotNull Collection<DayOfWeek> days) Schedules build execution to every week on specified week days and time. -
scheduleMonthly
Schedules build execution to every month on specified day of month and time. -
cronExpression
Schedules build execution according to the cron expression. Default value is '0 0 0 ? * *'.Cron expression won't be properly validated until sent out to Bamboo.
-
build
- Specified by:
build
in classTrigger<ScheduledTrigger,
ScheduledTriggerProperties>
-