Repository polling

You can configure Bamboo to poll the repository for source code changes, either:

  • periodically (e.g. every 180 seconds), or
  • based on a schedule (e.g. the second Sunday of every month at 5:00 am).

If Bamboo detects a change in the source code, a build of your plan is triggered.

To configure Bamboo to poll the repository for source code changes:

  1. From the dashboard select Build > All build plans.
  2. Locate the plan in the list and select the edit icon ()  to display the plan's configuration pages.
  3. Select the Triggers tab, then select either an existing trigger or Add trigger.
  4. Select the Repository polling trigger type.
  5. Bamboo displays the available repositories for the plan, as previously configured on the Source repositories tab. Optionally, enter a trigger description. Select the repositories that this trigger should apply to.
  6. Select a polling strategy:

    1. Periodically
      Enter a Polling frequency value (in seconds) for the time between when Bamboo checks for repository changes.

    2. Scheduled
      Select the edit icon () to use the Schedule Editor to set the polling schedule.
      Note, this is a schedule for polling your repository: a plan build will only be triggered if there are source code changes. See Triggering builds.
      Note that for the Cron expression option, 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: Constructing a cron expression in Bamboo.

  7. Select Save trigger.


Last modified on May 25, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.