Run a pipeline on a schedule
To run a pipeline at a given time, use a timer. Timers understand a cron-like specification for when to run a pipeline.
Note that a pipeline will still schedule normally if changes are checked in. If the pipeline should only run according to the timer's schedule then you should also set a manual approval for the first stage of the pipeline to stop it from automatically scheduling when materials change.
The timer behaves exactly the same way as a manually triggered pipeline. That is, it is the same as clicking on the 'play' button for a pipeline at the given time.
For example, the following would run the pipeline at 10pm on weekdays:
<pipeline name="nightly"> <timer>0 0 22 ? * MON-FRI</timer> <materials> ... </materials> <stages> <stage name="compile"> <approval type="manual"/> ... </pipeline>
For more information see <timer>