Class ScheduledDeploymentTrigger

    • Method Detail

      • scheduleEvery

        public ScheduledDeploymentTrigger scheduleEvery​(int every,
                                                        @NotNull
                                                        @NotNull java.util.concurrent.TimeUnit at)
        Schedules deployment execution every TimeUnit.SECONDS, TimeUnit.MINUTES or TimeUnit.HOURS.
      • scheduleOnceDaily

        public ScheduledDeploymentTrigger scheduleOnceDaily​(@NotNull
                                                            @NotNull java.time.LocalTime at)
        Schedules deployment execution to every day at specified time.
      • scheduleWeekly

        public ScheduledDeploymentTrigger scheduleWeekly​(@NotNull
                                                         @NotNull java.time.LocalTime at,
                                                         java.time.DayOfWeek... onDays)
        Schedules deployment execution to every week on specified week days at specified time.
      • scheduleWeekly

        public ScheduledDeploymentTrigger scheduleWeekly​(@NotNull
                                                         @NotNull java.time.LocalTime at,
                                                         @NotNull
                                                         @NotNull java.util.Collection<java.time.DayOfWeek> days)
        Schedules deployment execution to every week on specified week days and time.
      • scheduleMonthly

        public ScheduledDeploymentTrigger scheduleMonthly​(@NotNull
                                                          @NotNull java.time.LocalTime at,
                                                          int dayOfMonth)
        Schedules deployment execution to every month on specified day of month and time.
      • cronExpression

        public ScheduledDeploymentTrigger cronExpression​(@NotNull
                                                         @NotNull java.lang.String cronExpression)
        Schedules deployment execution according to the cron expression. Default value is '0 0 0 ? * *'.

        Cron expression won't be properly validated until sent out to Bamboo.

      • artifactBranch

        public ScheduledDeploymentTrigger artifactBranch​(@Nullable
                                                         @Nullable java.lang.String artifactBranch)
        Branch to provide artifacts for this deployment.
        Parameters:
        artifactBranch - name of plan branch. If value is null artifacts will be taken from plan master branch.
      • skipIfLatestVersionAlreadyDeployed

        public ScheduledDeploymentTrigger skipIfLatestVersionAlreadyDeployed​(boolean skipIfLatestVersionAlreadyDeployed)
        Should firing of the trigger be skipped if the latest version is already deployed.