Class RepositoryPollingTrigger

    • Constructor Detail

      • RepositoryPollingTrigger

        public RepositoryPollingTrigger()
        Creates repository polling trigger.
    • Method Detail

      • pollEvery

        public RepositoryPollingTrigger pollEvery​(int every,
                                                  @NotNull
                                                  @NotNull java.util.concurrent.TimeUnit timeUnit)
        Specifies how often (in TimeUnit) Bamboo should check the repository for changes. Time units smaller than TimeUnit.SECONDS won't be accepted. Default value is 180 seconds.
        See Also:
        withPollingPeriod(Duration)
      • withPollingPeriod

        public RepositoryPollingTrigger withPollingPeriod​(@NotNull
                                                          @NotNull java.time.Duration duration)
        Specifies time interval between checks for changes in the repositories. Duration smaller than a second won't be accepted. Default value is 180 seconds.
        See Also:
        pollEvery(int, TimeUnit)
      • pollOnceDaily

        public RepositoryPollingTrigger pollOnceDaily​(@NotNull
                                                      @NotNull java.time.LocalTime at)
        Orders Bamboo to check repository for changes once daily at specified time.
      • pollWeekly

        public RepositoryPollingTrigger pollWeekly​(@NotNull
                                                   @NotNull java.time.LocalTime at,
                                                   java.time.DayOfWeek... onDays)
        Orders Bamboo to check repository for changes weekly at specified days of week and time.
      • pollWeekly

        public RepositoryPollingTrigger pollWeekly​(@NotNull
                                                   @NotNull java.time.LocalTime at,
                                                   @NotNull
                                                   @NotNull java.util.Collection<java.time.DayOfWeek> days)
        Orders Bamboo to check repository for changes weekly at specified days of week and time.
      • pollMonthly

        public RepositoryPollingTrigger pollMonthly​(@NotNull
                                                    @NotNull java.time.LocalTime at,
                                                    int dayOfMonth)
        Orders Bamboo to check repository for changes once monthly at specified day of month and time.
      • pollWithCronExpression

        public RepositoryPollingTrigger pollWithCronExpression​(@NotNull
                                                               @NotNull java.lang.String cronExpression)
        Orders Bamboo to check repository for changes based on given cron expression.