Skip to content

Custom Builder Scheduling

cpjolicoeur edited this page Sep 13, 2010 · 1 revision

If you are using cerberus for several projects, or on a single project with multiple modules you may not want all projects to be built at the same time using the

buildall command
. Your first option would be to not use the buildall command and just use
cerberus build _project_name_
at different scheduled intervals in your crontab.

It is possible to have only one command in your crontab (‘cerberus buildall’) which runs every minute. Every project/build has its own

at_time
configuration which is similar to the cron syntax (‘man 5 crontab’). Only hour and minute are configurable.

Example configuration:

at_time: */5 *         #runs builder every five minutes.
at_time: * 12-18    #runs every minute from 12pm until 6pm

The configuration goes into the project.yml file at the top level.

Clone this wiki locally