Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-18352

Cron conversion for scheduled trigger when imported through Bamboo specs is incorrect

    XMLWordPrintable

Details

    Description

      Summary

      When using .scheduleEvery for a scheduled trigger in Bamboo specs, the cron expression generated is incorrect.

      Steps to Reproduce

      1. Export a plan via Bamboo specs with the following scheduled trigger:
                        .triggers(
                                new ScheduledTrigger()
                                        .description("Every 5 minutes")
                                        .scheduleEvery(5, TimeUnit.MINUTES)
                        );
        

      Expected Results

      The plan triggers every 5 minutes.

      Actual Results

      The plan triggers every second.

      Notes

      The cron expression stored in Bamboo is: * 0/5 * ? * *

      Workaround

      Manually define the correct cron expression instead by using:

                      .triggers(
                              new ScheduledTrigger()
                                      .description("Every 5 minutes")
                                      .cronExpression("0 0/5 * 1/1 * ? *")
                       );
      

      Attachments

        Issue Links

          Activity

            People

              pswiecicki Piotr Swiecicki
              jowen@atlassian.com Jeremy Owen
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: