"Cron Based Scheduling" allows you to run builds based on a schedule. This schedule can be configured using a Cron expression or via the Schedule Editor.
The schedule can be daily (times per day), weekly (days per week), monthly (days per month) or based on a Cron expression.
To schedule a Plan build using a Cron expression:
- Navigate to the repository settings for desired Plan, as described on Specifying the Source Repository for a Plan.
- In the 'Build Strategy' field, select 'Cron Based Scheduling' (see screenshot below).
- The 'Schedule' field will display the last configured schedule, e.g. 'Each Sunday, Wednesday and Saturday every 30 minutes from 1:00 am to 2:00 am'. Click the edit icon (
) next to this value to display the Schedule Editor.
- In the Schedule Editor (see screenshots below), select the type of build schedule that you want to configure for your Plan:
- 'Daily' — Build runs at specified intervals during the day, every day. For example, daily every 3 hours from 12:00am to 9:00am.
- 'Days per Week' — Build runs at specified intervals during the day, on specified days of the week. For example, each Sunday and Saturday every 3 hours from 12:00am to 9:00am.
- 'Days per Month' — Build runs at a specified time during the day, on specified days of the month. For example, the second Sunday of every month at 5:00 am
- 'Cron' — Use a Cron expression to specify when the build will be run. A cron expression consists of 6 mandatory and one optional field. The fields in sequential order are: seconds, minutes, hours, day-of-month, month, day-of-week and (optional) year. For example,
0 0 1 ? * 1#2
. For information on Cron expressions, see this FAQ: How do I construct a cron expression in Bamboo
- Click the 'Save' button.
Screenshot above: Plan Configuration — Build Strategy: Cron Based Scheduling
|
|
|
|
1. Daily
|
2. Week
|
3. Month
|
4. Cron
|
Screenshots: Scheduling polling for changes
Attachments:



