From the course: Learning Jenkins: Automating Software Development and System Administration

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Schedule jobs

Schedule jobs

- [Instructor] So far, all of our jobs have been triggered manually, but sometimes we'll need to run a job automatically. One of the ways that we can do that is by running jobs on a schedule. Running jobs on a schedule helps with automating things like updating software, checking system details, or downloading and processing data. If you're familiar with system administration, the thought of using Cron to run a schedule task might come to mind. In fact, Jenkins defines schedules using a format very similar to Cron. In both cases, we use an expression to represent the schedule for running the job. From left to right, the fields in our schedule are the minute, the hour, the day of the month, the month, and the day of the week. Each field can accept values that make sense for the period of time represented by the field. So for minutes, you can enter zero to 59, and for hours, you can enter zero to 23. To represent all valid values for a field, you would enter an asterisk or star. That is…

Contents