schedule format in jenkins

Jenkins use Cron as the schedule format. Cron contains 6 fields:

Field Meaning
1 Minute (0-59)
2 Hour (2-24)
3 Day of month (1-31)
4 Month (1-12, Jan, Feb, etc)
5 Day of week (0-6) 0 = Sunday, 1 = Monday etc or Sun, Mon, etc)
6 User that the command will run as
7 Command to execute

For example,

30 23 * * * geoffrey cucumber

means user geoffrey executes the cucumber command at 23:30pm every day,every week, every month, every year.

If we replace 30 as “20,40”, it means execute at 23:20pm and 23:40pm.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s