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