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 - Jenkins Tutorial
From the course: Learning Jenkins: Automating Software Development and System Administration
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
-
-
-
-
-
(Locked)
Using a global build tool4m 23s
-
(Locked)
Browse a job's workspace1m 45s
-
(Locked)
Manage artifacts2m 19s
-
Parameters and environment variables1m 51s
-
(Locked)
String parameters1m 30s
-
(Locked)
Choice parameters1m 22s
-
(Locked)
Boolean parameters1m 57s
-
(Locked)
Schedule jobs4m 30s
-
(Locked)
Solution: Use a build tool and parameters4m 4s
-
(Locked)
-
-