TeamCity 8.0 Help

Configuring Schedule Triggers

The Schedule Trigger allows you to set the time when a build of the configuration will be run.

Schedule Trigger options

Besides triggering builds daily or weekly, you can specify advanced time settings using cron-like expressions. This format provides more flexible scheduling options.

TeamCity uses Quartz for working with cron expressions.

Examples

Each 2 hours at :30

Every day at 11:45PM

Every Sunday at 1:00AM

Every last day of month at 10:00AM and 10:00PM

Seconds

0

0

0

0

Minutes

30

45

0

0

Hours

0/2

23

1

10,22

Day-of-month

*

*

?

L

Month

*

*

*

*

Day-of-week

?

?

1

?

Year(Optional)

*

*

*

*

See also other examples.

Brief description of the cron format used

Cron expressions are comprised of six fields and one optional field separated with a white space. The fields are respectively described as follows:

Field Name

Values

Special Characters

Seconds

0-59

, - * /

Minutes

0-59

, - * /

Hours

0-23

, - * /

Day-of-month

1-31

, - * ? / L W

Month

1-12 of JAN-DEC

, - * /

Day-of-week

1-7 or SUN-SAT

, - * ? / L #

Year(Optional)

empty, 1970-2099

, - * /

For the description of the special characters, please refer to Quartz CronTrigger Tutorial.

VCS Settings

You can restrict schedule trigger to start builds only if there are pending changes in your version control by selecting the corresponding option.

Last modified: 20 April 2023