Cron

You can use cron jobs to execute pipelines on time-based schedules. You can create and manage cron jobs from the repository Settings screen, or using the command line tools.

Expressions

The cron expression represents a set of times, using 6 space-separated fields, including seconds.

Field name Mandatory? Allowed values Allowed special characters
Seconds Yes 0-59 * / , -
Minutes Yes 0-59 * / , -
Hours Yes 0-23 * / , -
Day of month Yes 1-31 * / , - ?
Month Yes 1-12 or JAN-DEC * / , -
Day of week Yes 0-6 or SUN-SAT * / , - ?

Use one of several pre-defined schedules in place of a cron expression.

Entry Expression Description
@yearly 0 0 0 1 1 * Run once a year, midnight, Jan. 1st
@monthly 0 0 0 1 * * Run once a month, midnight, first of month
@weekly 0 0 0 * * 0 Run once a week, midnight between Sat/Sun
@daily 0 0 0 * * * Run once a day, midnight
@hourly 0 0 * * * * Run once an hour, beginning of hour