You can configure Bamboo to poll the repository for source code changes, either:
If Bamboo detects a change, a build of your plan is triggered. |
Periodic polling for repository changes
To trigger a plan's build periodically:
- Click Dashboard and then the All Plans tab.
- Locate the plan in the list and click the edit icon
to display the plan's configuration pages.
- Click the Plan Details tab.
- Choose Build Strategy > Polling the Repository for changes.
- Select Periodically from the 'Polling Strategy' options.
- Use Polling Frequency to specify how often (in seconds) Bamboo should check the repository for changes.
- Click Save.
Screenshot: Polling the repository for changes
Scheduled polling for repository changes
You can use the Schedule Editor to set up a polling schedule for your repository. Note, this is a schedule for polling your repository: a plan build will be be triggered only if there are source code changes. See also how to schedule for directly triggering plans.
The schedule can be daily (times per day), weekly (days per week), monthly (days per month) or based on a Cron expression.
To trigger a plan's build based on a schedule:
- Navigate to the repository settings for desired Plan, as described on Specifying the source repository.
- From the Build Strategy list, choose Polling the Repository for changes.
- Choose Scheduled from the Polling Strategy options. The Schedule field will display the last configured schedule, e.g. 'Daily at 5:00 am'.
- Click the edit icon (
) next to the Schedule field to display the Schedule Editor.
- Use the Schedule Editor to set up the polling schedule.
- Note that 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
- Note that 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,
- Click Save.
Screenshots: Scheduling polling for changes
|
|
|
|
1. Daily
|
2. Week
|
3. Month
|
4. Cron
|
Attachments:



